]> source.dussan.org Git - vaadin-framework.git/commit
Fix absolute layout component sizing on size change (#8269)
authorcaalador <mikael.grankvist@gmail.com>
Mon, 23 Jan 2017 15:11:47 +0000 (17:11 +0200)
committerDenis <denis@vaadin.com>
Mon, 23 Jan 2017 15:11:47 +0000 (17:11 +0200)
commitee7782f256a9b79f9cc13a659dd2bea930dd0e72
tree4f1fbf48b01bd0fe1cfe56b3dc794ac4495c4393
parent3a3e482606db2ae250e3fb4a02695dbacd0aed10
Fix absolute layout component sizing on size change (#8269)

* Fix absolute layout component sizing on size change (#8255, #8256, #8257)

Changing from relative to defined size leaves the component positioned wrong,
also changing from defined size to relative size leaves the component in the
wrong position with the wrong size.

Change makes the wrapper rerun setChildWidgetPosition() that adds/removes
necessary css definitions to/from the cssPosition String.

* Clean test sources according to review.
client/src/main/java/com/vaadin/client/ui/absolutelayout/AbsoluteLayoutConnector.java
uitest/src/main/java/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutResizeComponents.java [new file with mode: 0644]
uitest/src/test/java/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutResizeComponentsTest.java [new file with mode: 0644]