From 7398f1565ac6e06b871d7f673185fe9faa97e6c5 Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Thu, 6 Aug 2020 14:07:53 +0300 Subject: Add enabled check to Column#isResizable (#12063) --- client/src/main/java/com/vaadin/client/widgets/Grid.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/src/main') diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java index 996eae41be..a134465713 100755 --- a/client/src/main/java/com/vaadin/client/widgets/Grid.java +++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java @@ -5287,7 +5287,7 @@ public class Grid extends ResizeComposite implements HasSelectionHandlers, * otherwise */ public boolean isResizable() { - return resizable; + return grid.isEnabled() && resizable; } /** @@ -6496,6 +6496,8 @@ public class Grid extends ResizeComposite implements HasSelectionHandlers, !enabled || editorOpen); getEscalator().setScrollLocked(Direction.HORIZONTAL, !enabled); + getHeader().requestSectionRefresh(); + fireEvent(new GridEnabledEvent(enabled)); } -- cgit v1.2.3