Bug 204093 - Web Inspector: Local Overrides: drop zone overlay doesn't take up the full content area
Summary: Web Inspector: Local Overrides: drop zone overlay doesn't take up the full co...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-11-11 16:55 PST by Devin Rousso
Modified: 2019-11-12 16:40 PST (History)
5 users (show)

See Also:


Attachments
[Image] Screenshot of issue (587.92 KB, image/png)
2019-11-11 16:55 PST, Devin Rousso
no flags Details
Patch (2.20 KB, patch)
2019-11-11 16:59 PST, Devin Rousso
no flags Details | Formatted Diff | Diff
Patch (2.60 KB, patch)
2019-11-12 12:21 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2019-11-11 16:55:07 PST
Created attachment 383315 [details]
[Image] Screenshot of issue

.
Comment 1 Devin Rousso 2019-11-11 16:59:00 PST
Created attachment 383317 [details]
Patch
Comment 2 Joseph Pecoraro 2019-11-11 17:25:34 PST
Comment on attachment 383317 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=383317&action=review

> Source/WebInspectorUI/UserInterface/Views/ImageResourceContentView.css:-38
> -.content-view.resource.image > .drop-zone {
> -    top: calc(var(--navigation-bar-height) - 2px); /* borders */
> -}

I'd expect to keep this offset but not include it if there is no banner. So something like:

    .content-view.resource.image.no-banner > .drop-zone { ... }
Comment 3 Devin Rousso 2019-11-12 11:04:04 PST
Comment on attachment 383317 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=383317&action=review

>> Source/WebInspectorUI/UserInterface/Views/ImageResourceContentView.css:-38
>> -}
> 
> I'd expect to keep this offset but not include it if there is no banner. So something like:
> 
>     .content-view.resource.image.no-banner > .drop-zone { ... }

Ah!  I totally forgot about the banner!  I was wondering why this code existed :P

Good catch!
Comment 4 Devin Rousso 2019-11-12 12:21:17 PST
Created attachment 383369 [details]
Patch
Comment 5 Joseph Pecoraro 2019-11-12 14:07:16 PST
Comment on attachment 383369 [details]
Patch

r=me
Comment 6 WebKit Commit Bot 2019-11-12 16:39:16 PST
Comment on attachment 383369 [details]
Patch

Clearing flags on attachment: 383369

Committed r252379: <https://trac.webkit.org/changeset/252379>
Comment 7 WebKit Commit Bot 2019-11-12 16:39:18 PST
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2019-11-12 16:40:16 PST
<rdar://problem/57136479>