The Wayback Machine - https://web.archive.org/web/20221207052803/https://github.com/atom/autocomplete-plus/pull/641
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop flickering when adjusting margins #641

Merged
merged 1 commit into from Jan 28, 2016
Merged

Stop flickering when adjusting margins #641

merged 1 commit into from Jan 28, 2016

Conversation

as-cii
Copy link
Contributor

@as-cii as-cii commented Dec 16, 2015

See atom/atom#8295 (comment) for more information about why this happens.

With this PR we prevent margins to be adjusted across two different animation frames, which causes the autocompletion box to flicker.

/cc: @benogle for 馃憖

@as-cii
Copy link
Contributor Author

as-cii commented Dec 16, 2015

Upon further inspection, it seems like the replaced code was introduced to batch writes for a performance concern; removing it, though, doesn't seem to affect performance in a significant/noticeable way.

@benogle: what's the likelihood of layout thrashing here? Is there any particular scenario I am not thinking of?

@benogle
Copy link
Contributor

benogle commented Dec 17, 2015

the replaced code was introduced to batch writes for a performance concern

Definitely. I may have been a little too eager with the optimization. This seems fine, especially if you arent seeing any perf regression.

@benogle
Copy link
Contributor

benogle commented Jan 27, 2016

馃殺 ??

as-cii added a commit that referenced this pull request Jan 28, 2016
Stop flickering when adjusting margins
@as-cii as-cii merged commit 84c6b54 into master Jan 28, 2016
@as-cii as-cii deleted the as-no-flicker branch Jan 28, 2016
@as-cii
Copy link
Contributor Author

as-cii commented Jan 28, 2016

Thanks @benogle for the heads-up! 鉂わ笍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants