diff options
Diffstat (limited to 'WebCore/inspector/front-end/AbstractTimelinePanel.js')
-rw-r--r-- | WebCore/inspector/front-end/AbstractTimelinePanel.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/WebCore/inspector/front-end/AbstractTimelinePanel.js b/WebCore/inspector/front-end/AbstractTimelinePanel.js index c5180f6..6c5d715 100644 --- a/WebCore/inspector/front-end/AbstractTimelinePanel.js +++ b/WebCore/inspector/front-end/AbstractTimelinePanel.js @@ -215,8 +215,9 @@ WebInspector.AbstractTimelinePanel.prototype = { _updateDividersLabelBarPosition: function() { - var scrollTop = this.containerElement.scrollTop; - var dividersTop = (scrollTop < this.summaryBar.element.offsetHeight ? this.summaryBar.element.offsetHeight : scrollTop); + const scrollTop = this.containerElement.scrollTop; + const offsetHeight = this.summaryBar.element.offsetHeight; + const dividersTop = (scrollTop < offsetHeight ? offsetHeight : scrollTop); this._timelineGrid.setScrollAndDividerTop(scrollTop, dividersTop); }, @@ -259,13 +260,15 @@ WebInspector.AbstractTimelinePanel.prototype = { resize: function() { + WebInspector.Panel.prototype.resize.call(this); + this.updateGraphDividersIfNeeded(); }, updateMainViewWidth: function(width) { this._containerContentElement.style.left = width + "px"; - this.updateGraphDividersIfNeeded(); + this.resize(); }, invalidateAllItems: function() |