diff options
Diffstat (limited to 'client/src/com/vaadin')
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index f0b5e59059..3c2d070fa0 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -6182,6 +6182,23 @@ public class Grid<T> extends ResizeComposite implements } } + @Override + public void onResize() { + super.onResize(); + /* + * Delay calculation to be deferred so Escalator can do it's magic. + */ + Scheduler.get().scheduleDeferred(new ScheduledCommand() { + + @Override + public void execute() { + if (!autoColumnWidthsRecalculator.isScheduled()) { + autoColumnWidthsRecalculator.schedule(); + } + } + }); + } + /** * Grid does not support adding Widgets this way. * <p> |