瀏覽代碼

app: minor bugfix edit with bottom border not respected

darkfi 9 月之前
父節點
當前提交
8f3242d29f
共有 2 個文件被更改,包括 2 次插入2 次删除
  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.