diff options
author | Henri Sara <henri.sara@gmail.com> | 2017-08-07 10:19:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-07 10:19:10 +0300 |
commit | 3103ec62c8f258d7e9e4a9ac76ea42e1a0e7ca95 (patch) | |
tree | 57dba508817a50b0d68e0b751573ff19a0fae95d /uitest | |
parent | cd130dc6c45bf3f84236fae55fd9911a2783e568 (diff) | |
download | vaadin-framework-3103ec62c8f258d7e9e4a9ac76ea42e1a0e7ca95.tar.gz vaadin-framework-3103ec62c8f258d7e9e4a9ac76ea42e1a0e7ca95.zip |
Fix SplitPanel test for Chrome with a hack (#9782)
Chrome 55 and later cause extra scrollbars on the testing cluster but
not in local tests, probably due to a rounding error in the browser.
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/components/splitpanel/SplitPanelWithMinimumAndMaximum.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/splitpanel/SplitPanelWithMinimumAndMaximum.java b/uitest/src/main/java/com/vaadin/tests/components/splitpanel/SplitPanelWithMinimumAndMaximum.java index b1453ca1ea..7bad9ff599 100644 --- a/uitest/src/main/java/com/vaadin/tests/components/splitpanel/SplitPanelWithMinimumAndMaximum.java +++ b/uitest/src/main/java/com/vaadin/tests/components/splitpanel/SplitPanelWithMinimumAndMaximum.java @@ -1,5 +1,6 @@ package com.vaadin.tests.components.splitpanel; +import com.vaadin.server.Page; import com.vaadin.server.Sizeable; import com.vaadin.server.VaadinRequest; import com.vaadin.tests.components.AbstractReindeerTestUI; @@ -135,6 +136,10 @@ public class SplitPanelWithMinimumAndMaximum extends AbstractReindeerTestUI { percentagePositionWithPixelLimitsHorizontalResersed); verticalLayout.setSizeFull(); + // a hack for a Chrome 55+ issue (extra scrollbars) that is only seen on + // the testing cluster + Page.getCurrent().getStyles().add( + ".v-tabsheet-tabsheetpanel .v-scrollable { overflow: hidden }"); tabs.addComponent(verticalLayout); HorizontalLayout horizontalLayout = new HorizontalLayout(); |