Changeset 141270 in webkit


Ignore:
Timestamp:
Jan 30, 2013 7:12:28 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Sidebar splitter is invisible in Elements and Sources panels
https://bugs.webkit.org/show_bug.cgi?id=108331

Patch by Vladislav Kaznacheev <kaznacheev@chromium.org> on 2013-01-30
Reviewed by Pavel Feldman.

This was a regression caused by https://bugs.webkit.org/show_bug.cgi?id=108181.
The splitter element did not get the correct class at the initialization.

  • inspector/front-end/SidebarView.js:

(WebInspector.SidebarView):
(WebInspector.SidebarView.prototype._updateSidebarPosition):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r141269 r141270  
     12013-01-30  Vladislav Kaznacheev  <kaznacheev@chromium.org>
     2
     3        Web Inspector: Sidebar splitter is invisible in Elements and Sources panels
     4        https://bugs.webkit.org/show_bug.cgi?id=108331
     5
     6        Reviewed by Pavel Feldman.
     7
     8        This was a regression caused by https://bugs.webkit.org/show_bug.cgi?id=108181.
     9        The splitter element did not get the correct class at the initialization.
     10
     11        * inspector/front-end/SidebarView.js:
     12        (WebInspector.SidebarView):
     13        (WebInspector.SidebarView.prototype._updateSidebarPosition):
     14
    1152013-01-30  Dmitry Zvorygin  <zvorygin@chromium.org>
    216
  • trunk/Source/WebCore/inspector/front-end/SidebarView.js

    r141249 r141270  
    4747    this._sidebarPosition = sidebarPosition || WebInspector.SidebarView.SidebarPosition.Start;
    4848    this.setSecondIsSidebar(this._sidebarPosition === WebInspector.SidebarView.SidebarPosition.End);
    49     this._updateSidebarPosition();
     49    this._updateSidebarPosition(true);
    5050}
    5151
     
    9999    },
    100100
    101     _updateSidebarPosition: function()
     101    /**
     102     * @param {boolean=} force
     103     */
     104    _updateSidebarPosition: function(force)
    102105    {
    103106        var verticalSplit = true;
     
    105108            verticalSplit = this.element.offsetHeight < this.element.offsetWidth;
    106109
    107         if (verticalSplit === this.isVertical())
     110        if (!force && verticalSplit === this.isVertical())
    108111            return;
    109112
Note: See TracChangeset for help on using the changeset viewer.