Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

🐛 Fix window size is not updated on resize - #11388

Merged
nathansobo merged 1 commit into
atom:masterfrom
ypresto:fix-text-editor-window-size
Aug 6, 2016
Merged

nathansobo merged 1 commit into
atom:masterfrom
ypresto:fix-text-editor-window-size

Conversation

@ypresto

@ypresto ypresto commented Apr 6, 2016

Copy link
Copy Markdown
Contributor

@winstliu

winstliu commented Apr 7, 2016

Copy link
Copy Markdown
Contributor

Hi @ypresto, can you please add a spec to test this change? Thanks!

@ypresto

ypresto commented Apr 10, 2016

Copy link
Copy Markdown
Contributor Author

wow.. test-editor-component-spec.js is too long...

@ypresto
ypresto force-pushed the fix-text-editor-window-size branch from 62a4dc7 to 1e952d5 Compare April 10, 2016 17:26
@ypresto

ypresto commented Apr 10, 2016

Copy link
Copy Markdown
Contributor Author

Added test!

@winstliu

Copy link
Copy Markdown
Contributor

Woo, thanks!

@ypresto
ypresto force-pushed the fix-text-editor-window-size branch from 1e952d5 to 67e8575 Compare July 26, 2016 22:12
@ypresto

ypresto commented Jul 26, 2016

Copy link
Copy Markdown
Contributor Author

Fixed conflict..!

@winstliu

Copy link
Copy Markdown
Contributor

/cc @atom/feedback

@ypresto
ypresto force-pushed the fix-text-editor-window-size branch from 67e8575 to 1ce2f6c Compare August 5, 2016 02:56
@ypresto

ypresto commented Aug 5, 2016

Copy link
Copy Markdown
Contributor Author

one more rebase..!

@nathansobo

Copy link
Copy Markdown
Contributor

Thanks for tracking this down. What do you think about fixing this via a window resize event handler? We had one at some point and I'm not sure how it was removed. That would keep the pollDOM method lighter which will save battery power.

@nathansobo

Copy link
Copy Markdown
Contributor

I see, looks like we bind the resize event in the view scheduler and just call the pollers. These properties should probably be pretty cheap to read so I'm just going to merge. Thanks very much for finding and fixing this. Pretty embarrassing bug! ✨ ✨ ✨

@nathansobo
nathansobo merged commit 3a6cba3 into atom:master Aug 6, 2016
nathansobo pushed a commit that referenced this pull request Aug 6, 2016
🐛 Fix window size is not updated on resize
@nathansobo

Copy link
Copy Markdown
Contributor

Fixes #8295

nathansobo pushed a commit that referenced this pull request Aug 6, 2016
🐛 Fix window size is not updated on resize
@ypresto
ypresto deleted the fix-text-editor-window-size branch August 6, 2016 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants