diff --git a/gantt-addon/src/main/java/org/tltv/gantt/client/GanttWidget.java b/gantt-addon/src/main/java/org/tltv/gantt/client/GanttWidget.java index 5cc951a..63290a1 100644 --- a/gantt-addon/src/main/java/org/tltv/gantt/client/GanttWidget.java +++ b/gantt-addon/src/main/java/org/tltv/gantt/client/GanttWidget.java @@ -682,8 +682,7 @@ public void update(List steps) { timeline.setNoticeVerticalScrollbarWidth(isContentOverflowingVertically()); timeline.update(resolution, startDate, endDate, firstDayOfRange, firstHourOfRange, localeDataProvider); setContentMinWidth(timeline.getMinWidth()); - updateContainerStyle(); - updateContentWidth(); + internalHandleWidthChange(); updateStepWidths(steps); @@ -853,8 +852,8 @@ public void notifyWidthChanged(int width) { protected void internalHandleWidthChange() { timeline.updateWidths(); - updateContainerStyle(); updateContentWidth(); + updateContainerStyle(); } /**