Ver código fonte

Use _updateCharSize to avoid repetition

xuty 3 anos atrás
pai
commit
cb6732b7ec
1 arquivos alterados com 1 adições e 1 exclusões
  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;