Skip to content

incorrect position when restored from maximize-on-top-drag under Windows #7630 - #7766

Merged
zcbenz merged 1 commit into
electron:masterfrom
liusy182:window-size-restore
Oct 31, 2016
Merged

zcbenz merged 1 commit into
electron:masterfrom
liusy182:window-size-restore

Conversation

@liusy182

Copy link
Copy Markdown
Contributor

Fix for #7630

Issues regarding restore/maximize/minimize in general are because default windows behaviour is overridden by handling WM_SIZE message and SetBounds() to last_normal_bounds_. It is difficult to keep last_normal_bounds_ up-to-date since there are many platform-specific scenarios need to be handled.

This fix is to remove overrides and rely on default windows behaviour. I have tested by switching between maximize / restore / minimize / fullscreen and it is working.

I do have a question though why was the override implemented in the first place. Was it to fix some other bugs?

@zcbenz

zcbenz commented Oct 31, 2016

Copy link
Copy Markdown
Contributor

👍

@zcbenz
zcbenz merged commit 92f8c10 into electron:master Oct 31, 2016
@zcbenz

zcbenz commented Oct 31, 2016

Copy link
Copy Markdown
Contributor

I do have a question though why was the override implemented in the first place. Was it to fix some other bugs?

They were to fix the size events with Aero Snap: #2929.

@liusy182

Copy link
Copy Markdown
Contributor Author

Thanks @zcbenz :)

@simast

simast commented Nov 6, 2016

Copy link
Copy Markdown
Contributor

@liusy182 It seems this change (again) re-introduced the regression where if you minimize and restore browser window when minWidth is used - it is restored to a larger size. Please see #6596.

@liusy182

liusy182 commented Nov 8, 2016

Copy link
Copy Markdown
Contributor Author

Sorry @simast I poked around but could not nail down the root cause yet. Maybe some expert can help on this.

@simast

simast commented Nov 12, 2016

Copy link
Copy Markdown
Contributor

@liusy182 I have submitted a proper bug report as #7951 for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants