aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Koskinen <anna@vaadin.com>2014-10-28 16:51:45 +0200
committerSauli Tähkäpää <sauli@vaadin.com>2014-11-14 14:52:08 +0200
commit631819695031975572f8032fb4934c966c7a60ff (patch)
treef406ff4be49ee99cdaf687fbb5893477e223b66b
parent75378fc4b443b9e34ac4f2ce0f0fae55a37f9f66 (diff)
downloadvaadin-framework-631819695031975572f8032fb4934c966c7a60ff.tar.gz
vaadin-framework-631819695031975572f8032fb4934c966c7a60ff.zip
TreeTable column header and footer height fix (#15121)
Fix for regression caused by (#14812) + Valo test for TreeTables. Change-Id: I57f911cbf33e52196fa219b4feddfe62db7f6ded
-rw-r--r--WebContent/VAADIN/themes/valo/components/_treetable.scss6
-rw-r--r--uitest/src/com/vaadin/tests/themes/valo/ValoThemeUITest.java9
2 files changed, 15 insertions, 0 deletions
diff --git a/WebContent/VAADIN/themes/valo/components/_treetable.scss b/WebContent/VAADIN/themes/valo/components/_treetable.scss
index e025df2bc9..60b696315b 100644
--- a/WebContent/VAADIN/themes/valo/components/_treetable.scss
+++ b/WebContent/VAADIN/themes/valo/components/_treetable.scss
@@ -14,6 +14,12 @@
padding-left: 0;
padding-right: 0;
}
+
+ [class*="caption-container"],
+ [class*="footer-container"] {
+ $vertical-padding: round(($v-table-row-height - $v-table-header-font-size)/2);
+ min-height: $v-table-row-height - $vertical-padding - ($vertical-padding - $v-table-border-width);
+ }
[class*="cell-wrapper"] {
min-height: $v-font-size;
diff --git a/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUITest.java b/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUITest.java
index b0af0db8c6..92cb837b38 100644
--- a/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUITest.java
+++ b/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUITest.java
@@ -133,6 +133,15 @@ public class ValoThemeUITest extends MultiBrowserTest {
}
@Test
+ public void treeTables() throws Exception {
+ openTestURL("test");
+ open("Tables");
+ check("Hierarchical");
+ check("Footer");
+ compareScreen("treetables");
+ }
+
+ @Test
public void dragging() throws Exception {
openTestURL("test");
open("Drag and Drop", "Dragging Components");