Sfoglia il codice sorgente

app: minor bugfix edit with bottom border not respected

darkfi 9 mesi fa
parent
commit
8f3242d29f
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      bin/app/src/app/schema/mod.rs
  2. 1 1
      bin/app/src/ui/edit/behave.rs

+ 1 - 1
bin/app/src/app/schema/mod.rs

@@ -37,7 +37,7 @@ use crate::{
 mod chat;
 mod menu;
 //mod settings;
-//pub mod test;
+pub mod test;
 
 const COLOR_SCHEME: ColorScheme = ColorScheme::DarkMode;
 //const COLOR_SCHEME: ColorScheme = ColorScheme::PaperLight;

+ 1 - 1
bin/app/src/ui/edit/behave.rs

@@ -106,7 +106,7 @@ impl MultiLine {
         self.padding.get_f32(0).unwrap()
     }
     fn padding_bottom(&self) -> f32 {
-        self.padding.get_f32(1).unwrap()
+        self.padding.get_f32(2).unwrap()
     }
 
     /// Gets the real cursor pos within the rect.