Parcourir la source

app: minor bugfix edit with bottom border not respected

darkfi il y a 9 mois
Parent
commit
8f3242d29f
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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.