Procházet zdrojové kódy

fix!: use computed pixel size instead of actual pixel size

michaellee8 před 4 roky
rodič
revize
3722f49028
1 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. 6 2
      lib/frontend/terminal_view.dart

+ 6 - 2
lib/frontend/terminal_view.dart

@@ -310,8 +310,12 @@ class _TerminalViewState extends State<TerminalView> {
     _lastTerminalWidth = termWidth;
     _lastTerminalHeight = termHeight;
 
-    widget.terminal
-        .resize(termWidth, termHeight, _width!.floor(), _height!.floor());
+    widget.terminal.resize(
+      termWidth,
+      termHeight,
+      (termWidth * _cellSize.cellWidth).floor(),
+      (termHeight * _cellSize.cellHeight).floor(),
+    );
   }
 
   TextEditingValue? onInput(TextEditingValue value) {