Changeset 102756 in webkit


Ignore:
Timestamp:
Dec 14, 2011 2:04:38 AM (12 years ago)
Author:
vsevik@chromium.org
Message:

Web Inspector: [Regression] Scripts panel debug sidebar toolbar should not be scrolled out of the screen.
https://bugs.webkit.org/show_bug.cgi?id=74447

Reviewed by Pavel Feldman.

  • inspector/front-end/ScriptsPanel.js:

(WebInspector.ScriptsPanel.prototype.wasShown):

  • inspector/front-end/scriptsPanel.css:

(#scripts-debug-toolbar):
(#scripts-debug-sidebar-contents):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r102755 r102756  
     12011-12-13  Vsevolod Vlasov  <vsevik@chromium.org>
     2
     3        Web Inspector: [Regression] Scripts panel debug sidebar toolbar should not be scrolled out of the screen.
     4        https://bugs.webkit.org/show_bug.cgi?id=74447
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/front-end/ScriptsPanel.js:
     9        (WebInspector.ScriptsPanel.prototype.wasShown):
     10        * inspector/front-end/scriptsPanel.css:
     11        (#scripts-debug-toolbar):
     12        (#scripts-debug-sidebar-contents):
     13
    1142011-12-14  Alexander Færøy  <alexander.faeroy@nokia.com>
    215
  • trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js

    r102671 r102756  
    5454    this.splitView.minimalMainWidthPercent = 100 - maximalDebugSidebarWidthPercent;
    5555
    56     this.splitView.sidebarElement.appendChild(this.debugToolbar);
     56    this.sidebarElement.appendChild(this.debugToolbar);
    5757
    5858    this.debugSidebarResizeWidgetElement = document.createElement("div");
     
    104104        this.sidebarPanes.workers = new WebInspector.WorkersSidebarPane();
    105105
     106    this._debugSidebarContentsElement = document.createElement("div");
     107    this._debugSidebarContentsElement.id = "scripts-debug-sidebar-contents";
     108    this.sidebarElement.appendChild(this._debugSidebarContentsElement);   
     109
    106110    for (var pane in this.sidebarPanes)
    107         this.sidebarElement.appendChild(this.sidebarPanes[pane].element);
     111        this._debugSidebarContentsElement.appendChild(this.sidebarPanes[pane].element);
    108112
    109113    this.sidebarPanes.callstack.expanded = true;
     
    202206        WebInspector.Panel.prototype.wasShown.call(this);
    203207        if (Capabilities.nativeInstrumentationEnabled)
    204             this.sidebarElement.insertBefore(this.sidebarPanes.domBreakpoints.element, this.sidebarPanes.xhrBreakpoints.element);
     208            this._debugSidebarContentsElement.insertBefore(this.sidebarPanes.domBreakpoints.element, this.sidebarPanes.xhrBreakpoints.element);
    205209        this.sidebarPanes.watchExpressions.show();
    206210    },
  • trunk/Source/WebCore/inspector/front-end/scriptsPanel.css

    r102671 r102756  
    5151    position: relative;
    5252    margin-top: -1px;
    53     height: 23px;
     53    height: 24px;
     54}
     55
     56#scripts-debug-sidebar-contents {
     57    position: absolute;
     58    top: 22px;
     59    bottom: 0;
     60    left: 0;
     61    right: 0;
     62    overflow: auto;
    5463}
    5564
Note: See TracChangeset for help on using the changeset viewer.