Changeset 196187 in webkit


Ignore:
Timestamp:
Feb 5, 2016 1:38:44 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Navigation bar in sidebars should always fit on a single line
https://bugs.webkit.org/show_bug.cgi?id=153412
<rdar://problem/24318706>

Patch by Devin Rousso <Devin Rousso> on 2016-02-05
Reviewed by Timothy Hatcher.

This happened because the allowed maximum width of the sidebar was greater
than the minimum width derived from the currently visible sidebar.

  • UserInterface/Base/Utilities.js:

(Number.constrain):
Added logic to reverse the values of min and max if max is less than min.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r196185 r196187  
     12016-02-05  Devin Rousso  <dcrousso+webkit@gmail.com>
     2
     3        Web Inspector: Navigation bar in sidebars should always fit on a single line
     4        https://bugs.webkit.org/show_bug.cgi?id=153412
     5        <rdar://problem/24318706>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        This happened because the allowed maximum width of the sidebar was greater
     10        than the minimum width derived from the currently visible sidebar.
     11
     12        * UserInterface/Base/Utilities.js:
     13        (Number.constrain):
     14        Added logic to reverse the values of min and max if max is less than min.
     15
    1162016-02-05  Timothy Hatcher  <timothy@apple.com>
    217
  • trunk/Source/WebInspectorUI/UserInterface/Base/Utilities.js

    r194981 r196187  
    853853    value: function(num, min, max)
    854854    {
     855        if (max < min) {
     856            let temp = max;
     857            max = min;
     858            min = temp;
     859        }
    855860        if (num < min)
    856861            num = min;
Note: See TracChangeset for help on using the changeset viewer.