]> source.dussan.org Git - vaadin-framework.git/commit
Update AbstractOrderedLayout calculation logic 65/565/1
authorLeif Åstrand <leif@vaadin.com>
Thu, 3 Jan 2013 09:13:17 +0000 (11:13 +0200)
committerLeif Åstrand <leif@vaadin.com>
Thu, 3 Jan 2013 09:17:54 +0000 (11:17 +0200)
commit40d9b11ed9542db451358a8ba0591282971d17b3
tree17627acad4045bd623dfbe9c094c513e9cbe24c4
parentbe39a69211330310848778af9096c50dd53b93ad
Update AbstractOrderedLayout calculation logic

* Always use expansion logic if the layout's size is fixed
* Ensure e.g. expansion changes happen even if no hierarchy or
measurement changes (#10161)
* Separate the calculation of expand ratios from the adjustment for the
sizes of children without expansion
* Ensure there are element resize listeners for all elements that should
be measured (#10488)
* Postpone calculations if there are elements that have not yet been
measured
* Use measurements for fixing the height under more circumstances
* Only update based on hierarchy & state if something might have changed

Change-Id: I8542afbcb7e93d44bd0dff751a56ed10033937fc
client/src/com/vaadin/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java
client/src/com/vaadin/client/ui/orderedlayout/Slot.java
client/src/com/vaadin/client/ui/orderedlayout/VAbstractOrderedLayout.java
uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java