diff options
author | Tatu Lund <tatu@vaadin.com> | 2020-08-06 14:07:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-06 14:07:53 +0300 |
commit | 7398f1565ac6e06b871d7f673185fe9faa97e6c5 (patch) | |
tree | f368060fc15fc1dd70b93f6a52925ae12dfe93d5 /client | |
parent | b36dc81569fffc9d12fd6648366c965bbae4000e (diff) | |
download | vaadin-framework-7398f1565ac6e06b871d7f673185fe9faa97e6c5.tar.gz vaadin-framework-7398f1565ac6e06b871d7f673185fe9faa97e6c5.zip |
Add enabled check to Column#isResizable (#12063)
Diffstat (limited to 'client')
-rwxr-xr-x | client/src/main/java/com/vaadin/client/widgets/Grid.java | 4 |
1 files changed, 3 insertions, 1 deletions
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<T> extends ResizeComposite implements HasSelectionHandlers<T>, * otherwise */ public boolean isResizable() { - return resizable; + return grid.isEnabled() && resizable; } /** @@ -6496,6 +6496,8 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, !enabled || editorOpen); getEscalator().setScrollLocked(Direction.HORIZONTAL, !enabled); + getHeader().requestSectionRefresh(); + fireEvent(new GridEnabledEvent(enabled)); } |