diff options
| author | Leon Clarke <leonclarke@google.com> | 2010-07-15 12:03:35 +0100 |
|---|---|---|
| committer | Leon Clarke <leonclarke@google.com> | 2010-07-20 16:57:23 +0100 |
| commit | e458d70a0d18538346f41b503114c9ebe6b2ce12 (patch) | |
| tree | 86f1637deca2c524432a822e5fcedd4bef221091 /WebCore/inspector/front-end/ScriptsPanel.js | |
| parent | f43eabc081f7ce6af24b9df4953498a3cd6ca24d (diff) | |
| download | external_webkit-e458d70a0d18538346f41b503114c9ebe6b2ce12.zip external_webkit-e458d70a0d18538346f41b503114c9ebe6b2ce12.tar.gz external_webkit-e458d70a0d18538346f41b503114c9ebe6b2ce12.tar.bz2 | |
Merge WebKit at r63173 : Initial merge by git.
Change-Id: Ife5af0c7c6261fbbc8ae6bc08c390efa9ef10b44
Diffstat (limited to 'WebCore/inspector/front-end/ScriptsPanel.js')
| -rw-r--r-- | WebCore/inspector/front-end/ScriptsPanel.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/WebCore/inspector/front-end/ScriptsPanel.js b/WebCore/inspector/front-end/ScriptsPanel.js index 5563b93..3c4a0be 100644 --- a/WebCore/inspector/front-end/ScriptsPanel.js +++ b/WebCore/inspector/front-end/ScriptsPanel.js @@ -25,9 +25,7 @@ WebInspector.ScriptsPanel = function() { - WebInspector.Panel.call(this); - - this.element.addStyleClass("scripts"); + WebInspector.Panel.call(this, "scripts"); this.topStatusBar = document.createElement("div"); this.topStatusBar.className = "status-bar"; @@ -184,8 +182,6 @@ WebInspector.ScriptsPanel.PauseOnExceptionsState = { }; WebInspector.ScriptsPanel.prototype = { - toolbarItemClass: "scripts", - get toolbarItemLabel() { return WebInspector.UIString("Scripts"); @@ -794,15 +790,20 @@ WebInspector.ScriptsPanel.prototype = { _endSidebarResizeDrag: function(event) { WebInspector.elementDragEnd(event); - delete this._dragOffset; + this.saveSidebarWidth(); }, _sidebarResizeDrag: function(event) { var x = event.pageX + this._dragOffset; var newWidth = Number.constrain(window.innerWidth - x, Preferences.minScriptsSidebarWidth, window.innerWidth * 0.66); + this.setSidebarWidth(newWidth); + event.preventDefault(); + }, + setSidebarWidth: function(newWidth) + { this.sidebarElement.style.width = newWidth + "px"; this.sidebarButtonsElement.style.width = newWidth + "px"; this.viewsContainerElement.style.right = newWidth + "px"; @@ -810,7 +811,6 @@ WebInspector.ScriptsPanel.prototype = { this.sidebarResizeElement.style.right = (newWidth - 3) + "px"; this.resize(); - event.preventDefault(); }, updatePauseOnExceptionsState: function(pauseOnExceptionsState) |
