Changeset 223931 in webkit


Ignore:
Timestamp:
Oct 24, 2017, 3:11:59 PM (8 years ago)
Author:
Joseph Pecoraro
Message:

Web Inspector: Console Drawer resizing doesn't match cursor position
https://bugs.webkit.org/show_bug.cgi?id=178753
<rdar://problem/35160484>

Reviewed by Brian Burg.

  • UserInterface/Views/ConsoleDrawer.js:

(WI.ConsoleDrawer.prototype._updateDrawerHeight):
Drive-by fix an early return that would never have worked.

  • UserInterface/Views/Main.css:

(#content):
Give the #content a flex grow of 1. This causes the space to grow as it
already was but now it does not affect the size of the fixed height sibling.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r223929 r223931  
     12017-10-24  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Console Drawer resizing doesn't match cursor position
     4        https://bugs.webkit.org/show_bug.cgi?id=178753
     5        <rdar://problem/35160484>
     6
     7        Reviewed by Brian Burg.
     8
     9        * UserInterface/Views/ConsoleDrawer.js:
     10        (WI.ConsoleDrawer.prototype._updateDrawerHeight):
     11        Drive-by fix an early return that would never have worked.
     12
     13        * UserInterface/Views/Main.css:
     14        (#content):
     15        Give the #content a flex grow of 1. This causes the space to grow as it
     16        already was but now it does not affect the size of the fixed height sibling.
     17
    1182017-10-24  Eric Carlson  <eric.carlson@apple.com>
    219
  • trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleDrawer.js

    r221338 r223931  
    148148        const maximumHeight = this.element.parentNode.offsetHeight - 100;
    149149
    150         height = Number.constrain(height, minimumHeight, maximumHeight);
    151         if (height === this.element.style.height)
     150        let heightCSSValue = Number.constrain(height, minimumHeight, maximumHeight) + "px";
     151        if (this.element.style.height === heightCSSValue)
    152152            return;
    153153
    154         this.element.style.height = height + "px";
     154        this.element.style.height = heightCSSValue;
    155155
    156156        this.dispatchEventToListeners(WI.ConsoleDrawer.Event.Resized);
  • trunk/Source/WebInspectorUI/UserInterface/Views/Main.css

    r223694 r223931  
    152152    display: flex;
    153153    height: 100%; /* This reduces paint areas when typing in the console. http://webkit.org/b/145324 */
     154    flex: 1;
    154155}
    155156
Note: See TracChangeset for help on using the changeset viewer.