Maximize window state will show a gap on top
See original GitHub issueDescription
When I maximize the window, there is a gap above the fake title bar. Apply to:
- dragging title bar,
- clicking on maximize button,
- using hotkey
Win + Up - double clicking on title bar
Version
- GitHub Desktop: 1.2.6
- Operating system: 10.0.17134.112 x64
Steps to Reproduce
- Open GitHub in normal window state
- Maximize the window. The issue occurs.
- Restore window state to normal
- Maximize the window again, there is no issue.
- Keep repeating this, the issue will happen again.
Expected Behavior
There is no gap on top of the window
Actual Behavior
There is a gap which is title bar location on top of window
Additional Information

Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Gap at top of screen with window maximized
Hi, I am using Windows 7. My problem is when I maximize the explorer (windows or internet any), I am not able to...
Read more >Some applications in full screen leave an invisible gap ...
When their window is maximized to full screen, there's actually an invisible gap between the top of the window to the top edge...
Read more >Fixing ~8 pixel overhang on maximized window state ... - Reddit
I fixed it by making a DataTrigger Binding to WindowState and modifying the border thickness when the window is maximized.
Read more >WPF Maximized Window bigger than screen - Stack Overflow
It seems a pretty common issue. It appears you'll have to bind your height and width to the actual ...
Read more >macos - Gap at the bottom of maximized windows - Ask Different
Those 5 pixels are tied to the Dock. You can position the dock on either the left of right side instead, but the...
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

@j-f1 it does not (I expect all the window to be tinted blue here)
Adding
electronto indicate this might be a framework issue to dig into.After digging into this a bit further I think this is a problem with how Electron handles the events. Maybe this has been fixed, but here’s my setup so far:
masterWhen you run the app up and switch between maximized and normal state using
WinKey + Up Arrowyou’ll notice this pattern in the logs:Note that we’re only listening to these window change events, and I don’t think we’re setting these bounds anywhere.
The next step is to upgrade to Electron 2.0.x and see if it’s been fixed there.