Kaynağa Gözat

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

darkfi 2 yıl önce
ebeveyn
işleme
117898f79e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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.