Sfoglia il codice sorgente

Use _updateCharSize to avoid repetition

xuty 3 anni fa
parent
commit
cb6732b7ec
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/src/ui/render.dart

+ 1 - 1
lib/src/ui/render.dart

@@ -53,7 +53,7 @@ class RenderTerminal extends RenderBox with RelayoutWhenSystemFontsChangeMixin {
         _onEditableRect = onEditableRect,
         _composingText = composingText {
     _updateColorPalette();
-    _charSize = calcCharSize(_textStyle, _textScaleFactor);
+    _updateCharSize();
   }
 
   Terminal _terminal;