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

app: fix desktop for parley update

darkfi 1 год назад
Родитель
Сommit
fdb878b3df
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/app/src/text2/editor/parley.rs

+ 1 - 1
bin/app/src/text2/editor/parley.rs

@@ -75,7 +75,7 @@ impl Editor {
 
         self.editor.set_scale(window_scale);
         let mut styles = parley::StyleSet::new(font_size);
-        styles.insert(parley::StyleProperty::LineHeight(lineheight));
+        styles.insert(parley::StyleProperty::LineHeight(parley::LineHeight::FontSizeRelative(lineheight)));
         styles.insert(parley::StyleProperty::FontStack(parley::FontStack::List(FONT_STACK.into())));
         styles.insert(parley::StyleProperty::Brush(text_color));
         *self.editor.edit_styles() = styles;