Procházet zdrojové kódy

wallet: bugfix chatview missing `current_height = descent` in calc

darkfi před 2 roky
rodič
revize
117898f79e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      bin/darkwallet/src/ui/chatview.rs

+ 1 - 1
bin/darkwallet/src/ui/chatview.rs

@@ -1101,7 +1101,7 @@ impl ChatView {
 
         let mut mesh_infs = vec![];
         // First pass is to measure the height and generate the meshes
-        let mut current_height = 0.;
+        let mut current_height = self.descent();
         for page in pages {
             // We should be able to count lines and perform wrapping without having to
             // generate the mesh and alloc buffers.