Parcourir la source

Use _updateCharSize to avoid repetition

xuty il y a 3 ans
Parent
commit
cb6732b7ec
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;