question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

isMaximized: true issue

See original GitHub issue

Description

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

  1. Go to %appdata%/marktext and open window-state.json
  2. Change "isMaximized":false to "isMaximized":true
  3. Open a file

Alternative steps:

  1. Open Marktext
  2. Maximize the window
  3. Close Marktext
  4. 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:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
fxhacommented, Apr 27, 2018

I can confirm the issue on Linux and Windows (both frameless window).

@Jocs Can you reproduce the issue on macOS?

0reactions
fxhacommented, Apr 27, 2018

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 and win.once order caused some problems too.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found