From 3103ec62c8f258d7e9e4a9ac76ea42e1a0e7ca95 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Mon, 7 Aug 2017 10:19:10 +0300 Subject: [PATCH] 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. --- .../splitpanel/SplitPanelWithMinimumAndMaximum.java | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.39.5