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

Reduce excess positioning calls for ComboBox popup. #11808

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

Ansku
Copy link
Member

@Ansku Ansku commented Nov 13, 2019

  • If an open popup is reset to its default position on every update from
    the server before getting adjusted again to the actual expected
    position, on heavier applications some of those intermediate positions
    might get rendered. If the ComboBox is positioned at the right edge and
    the popup contents are longer than the input field (i.e. popup should
    open to the left, not right) this might cause flickering.
  • Setting the default position is only actually needed when the popup is
    opened in order to give it a baseline, otherwise it's better to simply
    adjust the position if needed.

Continues on #11718


This change is Reviewable

- If an open popup is reset to its default position on every update from
the server before getting adjusted again to the actual expected
position, on heavier applications some of those intermediate positions
might get rendered. If the ComboBox is positioned at the right edge and
the popup contents are longer than the input field (i.e. popup should
open to the left, not right) this might cause flickering.
- Setting the default position is only actually needed when the popup is
opened in order to give it a baseline, otherwise it's better to simply
adjust the position if needed.

Continues on vaadin#11718
Copy link
Contributor

@TatuLund TatuLund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@Ansku Ansku merged commit a8310a6 into vaadin:master Nov 13, 2019
Ansku added a commit that referenced this pull request Nov 13, 2019
- If an open popup is reset to its default position on every update from
the server before getting adjusted again to the actual expected
position, on heavier applications some of those intermediate positions
might get rendered. If the ComboBox is positioned at the right edge and
the popup contents are longer than the input field (i.e. popup should
open to the left, not right) this might cause flickering.
- Setting the default position is only actually needed when the popup is
opened in order to give it a baseline, otherwise it's better to simply
adjust the position if needed.

Continues on #11718
Ansku added a commit that referenced this pull request Nov 14, 2019
- If an open popup is reset to its default position on every update from
the server before getting adjusted again to the actual expected
position, on heavier applications some of those intermediate positions
might get rendered. If the ComboBox is positioned at the right edge and
the popup contents are longer than the input field (i.e. popup should
open to the left, not right) this might cause flickering.
- Setting the default position is only actually needed when the popup is
opened in order to give it a baseline, otherwise it's better to simply
adjust the position if needed.

Continues on #11718
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.

2 participants