Changeset 173015 in webkit


Ignore:
Timestamp:
Aug 27, 2014, 1:19:33 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Layout issues for popover on not legacy OS
https://bugs.webkit.org/show_bug.cgi?id=136268

Patch by Saam Barati <sbarati@apple.com> on 2014-08-27
Reviewed by Joseph Pecoraro.

On the latest OS, popovers invade the title bar's space which will
cause layout issues because the title bar will render above
the popover. Fix this by providing some padding for popovers on
not legacy OSs.

  • UserInterface/Views/Popover.js:
Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r173010 r173015  
     12014-08-27  Saam Barati  <sbarati@apple.com>
     2
     3        Web Inspector: Layout issues for popover on not legacy OS
     4        https://bugs.webkit.org/show_bug.cgi?id=136268
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        On the latest OS, popovers invade the title bar's space which will
     9        cause layout issues because the title bar will render above
     10        the popover. Fix this by providing some padding for popovers on
     11        not legacy OSs.
     12
     13        * UserInterface/Views/Popover.js:
     14
    1152014-08-27  Timothy Hatcher  <timothy@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Views/Popover.js

    r168919 r173015  
    197197        }
    198198
     199        const titleBarOffset = WebInspector.Platform.name === "mac" && !WebInspector.Platform.isLegacyMacOS ? 22 : 0;
     200        var containerFrame = new WebInspector.Rect(0, titleBarOffset, window.innerWidth, window.innerHeight - titleBarOffset);
    199201        // The frame of the window with a little inset to make sure we have room for shadows.
    200         var containerFrame = new WebInspector.Rect(0, 0, window.innerWidth, window.innerHeight);
    201202        containerFrame = containerFrame.inset(WebInspector.Popover.ShadowEdgeInsets);
    202203
Note: See TracChangeset for help on using the changeset viewer.