Explorar el Código

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

darkfi hace 2 años
padre
commit
117898f79e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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![];
         let mut mesh_infs = vec![];
         // First pass is to measure the height and generate the meshes
         // 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 {
         for page in pages {
             // We should be able to count lines and perform wrapping without having to
             // We should be able to count lines and perform wrapping without having to
             // generate the mesh and alloc buffers.
             // generate the mesh and alloc buffers.