summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Koskinen <anna@vaadin.com>2014-10-28 16:51:45 +0200
committerVaadin Code Review <review@vaadin.com>2014-11-10 08:39:50 +0000
commit67f669035a12d6c0ec3661f283d28717279e144d (patch)
treefb0767d00c3662e25d721dbb1105fdd81d51616a
parent457e802e2fe59ec35089a55acdc7b0321a2d4a5a (diff)
downloadvaadin-framework-67f669035a12d6c0ec3661f283d28717279e144d.tar.gz
vaadin-framework-67f669035a12d6c0ec3661f283d28717279e144d.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");