aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2020-07-23 13:27:11 +0300
committerGitHub <noreply@github.com>2020-07-23 13:27:11 +0300
commit17baaf01b7d5b942856f5be8ba21f3c2918b45e5 (patch)
tree66f9d43ba06b1b9b65740b889ce6c99818521272 /uitest/src/main/java/com
parenta17348081abf87cb0d42bef4ae4faac3c8fd6c72 (diff)
downloadvaadin-framework-17baaf01b7d5b942856f5be8ba21f3c2918b45e5.tar.gz
vaadin-framework-17baaf01b7d5b942856f5be8ba21f3c2918b45e5.zip
Add column width recalculation when vertical scrollbar hidden/shown. (#12058)
- If the Grid has any columns with non-fixed widths, the presence of a vertical scrollbar affects the column width calculations. Horizontal scrollbar should only be shown when actually needed.
Diffstat (limited to 'uitest/src/main/java/com')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/components/grid/GridSizeChange.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/grid/GridSizeChange.java b/uitest/src/main/java/com/vaadin/tests/components/grid/GridSizeChange.java
index b677cee903..3628c4adaf 100644
--- a/uitest/src/main/java/com/vaadin/tests/components/grid/GridSizeChange.java
+++ b/uitest/src/main/java/com/vaadin/tests/components/grid/GridSizeChange.java
@@ -26,7 +26,7 @@ public class GridSizeChange extends AbstractTestUI {
protected void setup(VaadinRequest request) {
grid = new Grid<>();
data = new ArrayList<>();
- for (int i = 0; i < 10; ++i) {
+ for (int i = 0; i < 8; ++i) {
data.add(i);
++counter;
}
@@ -39,8 +39,8 @@ public class GridSizeChange extends AbstractTestUI {
// set height mode and height
grid.setHeightMode(HeightMode.ROW);
- grid.setHeightByRows(10);
- grid.setWidth(90, Unit.PIXELS);
+ grid.setHeightByRows(8);
+ grid.setWidth(100, Unit.PIXELS);
// create a tabsheet with one tab and place grid inside
VerticalLayout tab = new VerticalLayout();