isMaximized: true issue
See original GitHub issueDescription
When isMaximized
is set to true
, (window-state.json) I can’t open any files. It will simply open a new untitled file whenever I attempt to open one.
Steps to reproduce
- Go to
%appdata%/marktext
and openwindow-state.json
- Change
"isMaximized":false
to"isMaximized":true
- Open a file
Alternative steps:
- Open Marktext
- Maximize the window
- Close Marktext
- Open it again and attempt to open a document
Expected behavior: The correct file gets opened
Actual behavior: A new untitled file gets opened
Versions
- Mark Text: v0.10.21
- OS: Windows 10
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
maximize/unmaximize doesn't work on electron when resizable
i got a similar issue and i found this solution: ... isMaximized() i used window.isFullScreen() ... setFullScreen(true); } else { window.
Read more >[Solved] OOo Calc macro to Maximize a window - (View topic)
Can someone show me a OOo Calc macro to Maximize a window. I want this macro to look at the - current size...
Read more >Get a Handle on Window State - No Longer Set
The first, IsZoomed , will return True if the window handle passed to it belongs to a window that is maximized.
Read more >javafx.stage.Stage.setMaximized java code examples - Tabnine
isMaximized (); if (primaryStage.isMaximized()) { ... setMaximized(true); //Restore down stage. ... setMaximized(true); assertEquals(StageMode.
Read more >WPF Application with WindowState Maximized and ...
When explorer is running and the WindowState is Maximized the application also resizes when the resolution is increased. 3) Seems like the issue...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can confirm the issue on Linux and Windows (both frameless window).
@Jocs Can you reproduce the issue on macOS?
PR #219 should fix the issue. The issue is known and electron don’t like maximize/full-screen modes before window is ready event. Perhaps
win.loadURL
andwin.once
order caused some problems too.