Procházet zdrojové kódy

Use _updateCharSize to avoid repetition

xuty před 3 roky
rodič
revize
cb6732b7ec
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;