Skip to content

Commit

Permalink
Fixed window resizing on different DPI screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Dec 5, 2023
1 parent d522bbf commit 80861b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pages/dashboard_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -895,8 +895,9 @@ class _DashboardPageState extends State<DashboardPage> with WindowListener {

await windowManager.unmaximize();

Size newScreenSize =
Size(screenSize.width + 16, (screenSize.height + 8) - 250) / pixelRatio;
Size newScreenSize = Size(screenSize.width + 16,
(screenSize.height + 8) - (200 * pixelRatio)) /
pixelRatio;

await windowManager.setSize(newScreenSize);

Expand Down

0 comments on commit 80861b7

Please sign in to comment.