]> source.dussan.org Git - vaadin-framework.git/commit
Force FormLayout children to shrink with the layout (#11154) 7.5.9
authorLeif Åstrand <leif@vaadin.com>
Fri, 28 Aug 2015 18:47:26 +0000 (21:47 +0300)
committerTeemu Suo-Anttila <teemusa@vaadin.com>
Thu, 5 Nov 2015 11:06:42 +0000 (13:06 +0200)
commit8018ec184131d63911ce9fe8f8a398cab029ca82
treefa66233cb684377e94b7b67497fe34ef6f3e92a6
parent6da674f2dfae2e2bc5de22b89a0b7e7648d52ed7
Force FormLayout children to shrink with the layout (#11154)

The <table> used by the FormLayout doesn't reduce its size if any child
component has locked its own size (which is the case with e.g. Table and
some other components doing explicit pixel calculations). To work around
this, we need to detect the situation, force the <table> to reduce its
width by temporarily assigning explicit widths to the cells and then
remove the forced size after all children have adjusted.

Change-Id: Iacef62979acf24c869a5cbeb82efb0c1e537ec95
WebContent/VAADIN/themes/base/formlayout/formlayout.scss
WebContent/VAADIN/themes/reindeer/formlayout/formlayout.scss
client/src/com/vaadin/client/ui/VFormLayout.java
client/src/com/vaadin/client/ui/formlayout/FormLayoutConnector.java
uitest/src/com/vaadin/tests/components/formlayout/FormLayoutResizing.java [new file with mode: 0644]
uitest/src/com/vaadin/tests/components/formlayout/FormLayoutResizingTest.java [new file with mode: 0644]