]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add enabled check to Column#isResizable (#12063)
authorTatu Lund <tatu@vaadin.com>
Thu, 6 Aug 2020 11:07:53 +0000 (14:07 +0300)
committerGitHub <noreply@github.com>
Thu, 6 Aug 2020 11:07:53 +0000 (14:07 +0300)
client/src/main/java/com/vaadin/client/widgets/Grid.java

index 996eae41be0dbeeb8f110b886260c4ab3d3f1224..a13446571326d28618ac6475fc4bcd3231129631 100755 (executable)
@@ -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));
     }