Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store correct window size on Linux #1144

Merged
merged 1 commit into from
Nov 27, 2017

Conversation

whizark
Copy link
Contributor

@whizark whizark commented Nov 19, 2017

Boostnote ~never stores~~ always resets the window size on Ubuntu.

I noticed that mainWindow.getBounds() in storeWindowSize(), which is called on window-all-closed event (lib/main-window.js), always returns { x: 0, y: 0, width: 0, height: 0 }.

Handling before-quit event or will-quit event doen't fix either.

I'm not sure if this makes sense but storeWindowSize() on close event works.

Environment

  • Ubuntu 16.04.3 LTS
  • Boostnote 0.8.16

Related commits


Just for reference, this or #1168 should fix #1166 😃

@kazup01 kazup01 added the awaiting review ❇️ Pull request is awaiting a review. label Nov 19, 2017
@whizark whizark changed the title store window size on Linux store correct window size on Linux Nov 19, 2017
@sosukesuzuki
Copy link
Member

@whizark
LGTM! !!

@kazup01
Copy link
Member

kazup01 commented Nov 24, 2017

Thank you @whizark , we will merge it at sometime soon.

@kazup01 kazup01 merged commit b48b8f3 into BoostIO:master Nov 27, 2017
@kazup01
Copy link
Member

kazup01 commented Nov 27, 2017

Merged. Thanks @whizark ;)

@whizark
Copy link
Contributor Author

whizark commented Nov 27, 2017

@sosukesuzuki, @kazup01 Thank you for your review & merge! BTW, the new design on v0.8.17 is really cool 😄

@kazup01 kazup01 added next release (v0.8.18) and removed awaiting review ❇️ Pull request is awaiting a review. Next Release labels Nov 28, 2017
@kohei-takata kohei-takata mentioned this pull request Dec 3, 2017
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.

Window size is not saved
4 participants