Просмотр исходного кода

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

darkfi 2 лет назад
Родитель
Сommit
117898f79e
1 измененных файлов с 1 добавлено и 1 удалено
  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.