Kaynağa Gözat

wallet: chatview fix cutoff at the top in android ;)

darkfi 1 yıl önce
ebeveyn
işleme
73076d45fc

+ 2 - 2
bin/darkwallet/src/app/schema.rs

@@ -652,8 +652,8 @@ pub(super) async fn make(app: &App) {
     ))];
     prop.set_expr(Role::App, 3, code).unwrap();
     node.set_property_f32(Role::App, "font_size", FONTSIZE).unwrap();
-    node.set_property_f32(Role::App, "line_height", FONTSIZE * 1.5).unwrap();
-    node.set_property_f32(Role::App, "baseline", 20.).unwrap();
+    node.set_property_f32(Role::App, "line_height", FONTSIZE * 1.6).unwrap();
+    node.set_property_f32(Role::App, "baseline", FONTSIZE * 1.2).unwrap();
     node.set_property_u32(Role::App, "z_index", 1).unwrap();
     //node.set_property_bool(Role::App, "debug", true).unwrap();
 

+ 0 - 2
bin/darkwallet/src/ui/chatview/mod.rs

@@ -750,7 +750,6 @@ impl ChatView {
 
         let meshes = msgbuf.gen_meshes(rect, scroll).await;
 
-        let mut current_height = 0.;
         for (i, (y_pos, mesh)) in enumerate(meshes) {
             // Apply scroll and scissor
             // We use the scissor for scrolling
@@ -766,7 +765,6 @@ impl ChatView {
             instrs.push(DrawInstruction::ApplyMatrix(model));
 
             instrs.push(DrawInstruction::Draw(mesh));
-            //debug!(target: "ui::chatview", "mesh-{i}: {height} {current_height}");
         }
 
         let freed = std::mem::take(&mut msgbuf.freed);