Bug 157590 - Web Inspector: Contents of Duration column are covered by always on (legacy) scroll bars
Summary: Web Inspector: Contents of Duration column are covered by always on (legacy) ...
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: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on: 157621 157637
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-11 15:10 PDT by Nikita Vasilyev
Modified: 2016-05-16 13:18 PDT (History)
8 users (show)

See Also:


Attachments
WIP (3.19 KB, patch)
2016-05-11 15:17 PDT, Nikita Vasilyev
nvasilyev: review-
nvasilyev: commit-queue-
Details | Formatted Diff | Diff
[Image] With the patch applied (146.76 KB, image/png)
2016-05-11 15:20 PDT, Nikita Vasilyev
no flags Details
[Image] Bug (19.77 KB, image/png)
2016-05-11 15:58 PDT, Nikita Vasilyev
no flags Details
Patch (3.65 KB, patch)
2016-05-11 16:31 PDT, Nikita Vasilyev
no flags Details | Formatted Diff | Diff
Patch (5.00 KB, patch)
2016-05-15 11:14 PDT, Nikita Vasilyev
timothy: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff
Patch (5.20 KB, patch)
2016-05-16 12:47 PDT, Nikita Vasilyev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2016-05-11 15:10:44 PDT
rdar://problem/24846037
Comment 1 Nikita Vasilyev 2016-05-11 15:17:11 PDT
Created attachment 278671 [details]
WIP
Comment 2 Nikita Vasilyev 2016-05-11 15:20:45 PDT
Created attachment 278672 [details]
[Image] With the patch applied
Comment 3 Nikita Vasilyev 2016-05-11 15:58:47 PDT
Created attachment 278675 [details]
[Image] Bug

(In reply to comment #1)
> Created attachment 278671 [details]
> WIP

Sometimes it looks like this :\
Comment 4 Timothy Hatcher 2016-05-11 16:16:21 PDT
(In reply to comment #3)
> Sometimes it looks like this :\

Is _updateScrollbarPadding over compensating?
Comment 5 Nikita Vasilyev 2016-05-11 16:24:09 PDT
Comment on attachment 278671 [details]
WIP

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

> Source/WebInspectorUI/UserInterface/Views/DataGrid.js:327
> +        var scrollBarWidth = this._scrollContainerElement.offsetWidth - this._scrollContainerElement.clientWidth;

Sometimes scrollBarWidth is 0.

I have a couple of pure HTML & CSS ideas that would make this method obsolete.
Comment 6 Nikita Vasilyev 2016-05-11 16:31:18 PDT
Created attachment 278679 [details]
Patch
Comment 7 Timothy Hatcher 2016-05-11 17:25:22 PDT
Comment on attachment 278679 [details]
Patch

Clever!
Comment 8 WebKit Commit Bot 2016-05-11 17:46:18 PDT
Comment on attachment 278679 [details]
Patch

Clearing flags on attachment: 278679

Committed r200718: <http://trac.webkit.org/changeset/200718>
Comment 9 WebKit Commit Bot 2016-05-11 17:46:22 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Nikita Vasilyev 2016-05-12 08:55:23 PDT
This converts the default overlay scrollbar to the always visible one:

    ::-webkit-scrollbar { /* any property */ }

Back to the drawing board.
Comment 11 Nikita Vasilyev 2016-05-15 11:14:05 PDT
Created attachment 278974 [details]
Patch
Comment 12 Nikita Vasilyev 2016-05-16 11:32:16 PDT
The current patch looks a lot like the first WIP. However,

(In reply to comment #3)
> Created attachment 278675 [details]
> [Image] Bug
> 
> (In reply to comment #1)
> > Created attachment 278671 [details]
> > WIP
> 
> Sometimes it looks like this :\

This issue was addressed by running _updateScrollbarPadding
on every layout call.
Comment 13 WebKit Commit Bot 2016-05-16 12:27:13 PDT
Comment on attachment 278974 [details]
Patch

Rejecting attachment 278974 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 278974, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
Interface/Views/DataGrid.js
Hunk #1 succeeded at 59 with fuzz 2 (offset 6 lines).
Hunk #2 succeeded at 69 (offset 6 lines).
Hunk #3 succeeded at 116 (offset 6 lines).
Hunk #4 succeeded at 126 (offset 6 lines).
Hunk #5 FAILED at 828.
1 out of 5 hunks FAILED -- saving rejects to file Source/WebInspectorUI/UserInterface/Views/DataGrid.js.rej

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Timothy Hatcher']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/1331873
Comment 14 Nikita Vasilyev 2016-05-16 12:47:04 PDT
Created attachment 279037 [details]
Patch

Rebaselined.
Comment 15 WebKit Commit Bot 2016-05-16 13:18:28 PDT
Comment on attachment 279037 [details]
Patch

Clearing flags on attachment: 279037

Committed r200962: <http://trac.webkit.org/changeset/200962>
Comment 16 WebKit Commit Bot 2016-05-16 13:18:32 PDT
All reviewed patches have been landed.  Closing bug.