]> source.dussan.org Git - vaadin-framework.git/commit
Reduce excess positioning calls for ComboBox popup. (#11808)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Wed, 13 Nov 2019 12:49:36 +0000 (14:49 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Nov 2019 12:49:36 +0000 (14:49 +0200)
commita8310a63c6f217e2d7af304dc34cd52a01261590
tree45895a1c9aa649542d9bd8b72f2055b9819ca7da
parent9d03f9944482f33ed3c22f91ccd7d9cbea95fdaa
Reduce excess positioning calls for ComboBox popup. (#11808)

- 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
client/src/main/java/com/vaadin/client/ui/VComboBox.java