]> source.dussan.org Git - vaadin-framework.git/commit
Fix Grid height calculation when HeightMode.ROW (#20104, #20074)
authoradam <adam@vaadin.com>
Mon, 8 Aug 2016 12:25:10 +0000 (15:25 +0300)
committerHenri Sara <hesara@vaadin.com>
Thu, 11 Aug 2016 10:26:27 +0000 (13:26 +0300)
commitfc9b955d580aef5a6e52a45e0857b0ca9fee4424
tree3fa6e722ce3b9cccc08f91568ab688fbe493eadb
parent35078caabebfda612867c68b38f1d554dd3192a7
Fix Grid height calculation when HeightMode.ROW (#20104, #20074)

When Grid is inside of a Tab (Tabsheet or Accordion) and
height mode is set to HeightMode.ROW, layout happens
before row height is known. To fix that, an event is fired
and a handler starts a layout after everything is calculated.

Change-Id: Idc8de795956b387ec69adf1871cb7f557914d998
client/src/main/java/com/vaadin/client/connectors/GridConnector.java
client/src/main/java/com/vaadin/client/widget/escalator/events/RowHeightChangedEvent.java [new file with mode: 0644]
client/src/main/java/com/vaadin/client/widget/escalator/events/RowHeightChangedHandler.java [new file with mode: 0644]
client/src/main/java/com/vaadin/client/widgets/Escalator.java
client/src/main/java/com/vaadin/client/widgets/Grid.java
uitest/src/main/java/com/vaadin/tests/components/grid/GridRowHeightChange.java [new file with mode: 0644]
uitest/src/test/java/com/vaadin/tests/components/grid/GridRowHeightChangeTest.java [new file with mode: 0644]