]> source.dussan.org Git - vaadin-framework.git/commit
Removes double spacing from gridLayout which has empty rows or columns (#8855)
authorDmitrii Rogozin <dmitrii@vaadin.com>
Thu, 22 May 2014 11:04:48 +0000 (14:04 +0300)
committerVaadin Code Review <review@vaadin.com>
Wed, 11 Jun 2014 11:17:29 +0000 (11:17 +0000)
commit3e5c5bc10752ae011ee74c82530452ba26521833
treeee9bdad7558822525b853c331c6091e98e6e30a2
parentede8fbaad050c98682df9da935caf59a3a3787c6
Removes double spacing from gridLayout which has empty rows or columns (#8855)

If row has no elements or only invisible elements, its size will be set to zero.

 When row expand ratio was set, its size will be assigned to the value according to an expand ratio.

If component takes several rows of the gridLayout, these rows are considered as non-empty and won't be removed.

Change-Id: I10ddd22a6c9535b9978769bab7b496e11a28b78a
client/src/com/vaadin/client/ui/VGridLayout.java
client/src/com/vaadin/client/ui/gridlayout/GridLayoutConnector.java
server/src/com/vaadin/ui/GridLayout.java
shared/src/com/vaadin/shared/ui/gridlayout/GridLayoutState.java
uitest/src/com/vaadin/tests/components/gridlayout/GridLayoutExpandRatio.java [new file with mode: 0644]
uitest/src/com/vaadin/tests/components/gridlayout/GridLayoutExpandRatioTest.java [new file with mode: 0644]
uitest/src/com/vaadin/tests/components/gridlayout/GridLayoutHideMiddleCells.java [new file with mode: 0644]
uitest/src/com/vaadin/tests/components/gridlayout/GridLayoutHideMiddleCellsTest.java [new file with mode: 0644]