WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
55238
Web Inspector: Resizing columns in the network panel is weird
https://bugs.webkit.org/show_bug.cgi?id=55238
Summary
Web Inspector: Resizing columns in the network panel is weird
Matt Lilek
Reported
2011-02-25 11:10:44 PST
Resizing the columns in the Network panel is weird. Resizing a column only changes the amount of space between the columns on either side of the resizer instead of adjusting the whole tableview (the behavior of native TableViews on OS X). For example, this makes is really hard to resize the Name column to see the full names of long resources. I don't remember if this is how tableviews behave on Windows and don't have a machine handy to test, but we should match the host platform's behavior if that's the case.
Attachments
Patch
(5.85 KB, patch)
2011-05-18 12:50 PDT
,
tonistiigi
no flags
Details
Formatted Diff
Diff
Patch
(5.87 KB, patch)
2011-05-18 13:00 PDT
,
tonistiigi
no flags
Details
Formatted Diff
Diff
Pathc
(5.86 KB, patch)
2011-05-18 13:08 PDT
,
tonistiigi
pfeldman
: review-
Details
Formatted Diff
Diff
Patch with style fixes
(5.83 KB, patch)
2011-05-19 08:30 PDT
,
tonistiigi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
tonistiigi
Comment 1
2011-05-18 12:50:20 PDT
Created
attachment 93971
[details]
Patch Includes resizing methods: nearest, last and first. Native NSTableView also has sequential an reverse sequential(that probably have the best effect) but adding those would mean adding minimum and maximum width ranges to columns instead of single fixed values.
WebKit Review Bot
Comment 2
2011-05-18 12:53:13 PDT
Attachment 93971
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/ChangeLog:4: Line contains tab character. [whitespace/tab] [5] Source/WebCore/ChangeLog:9: Line contains tab character. [whitespace/tab] [5] Source/WebCore/ChangeLog:10: Line contains tab character. [whitespace/tab] [5] Total errors found: 3 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
tonistiigi
Comment 3
2011-05-18 13:00:51 PDT
Created
attachment 93973
[details]
Patch
WebKit Review Bot
Comment 4
2011-05-18 13:02:41 PDT
Attachment 93973
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/ChangeLog:4: Line contains tab character. [whitespace/tab] [5] Total errors found: 1 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
tonistiigi
Comment 5
2011-05-18 13:08:10 PDT
Created
attachment 93976
[details]
Pathc
Pavel Feldman
Comment 6
2011-05-19 04:32:00 PDT
Comment on
attachment 93976
[details]
Pathc View in context:
https://bugs.webkit.org/attachment.cgi?id=93976&action=review
There is a series of style nits, but otherwise looks good. Thanks for fixing this!
> Source/WebCore/inspector/front-end/DataGrid.js:927 > + if (typeof this._resizeMethod==="undefined")
Nit: this should be: typeof this._resizeMethod === "undefined"
> Source/WebCore/inspector/front-end/DataGrid.js:965 > + if(this.resizeMethod==WebInspector.DataGrid.ResizeMethod.Last)
Spaces around == and before ( as well.
> Source/WebCore/inspector/front-end/DataGrid.js:966 > + {
Style for if is if (foo === bar) { ... }
> Source/WebCore/inspector/front-end/DataGrid.js:969 > + else if(this.resizeMethod==WebInspector.DataGrid.ResizeMethod.First)
ditto
> Source/WebCore/inspector/front-end/DataGrid.js:971 > + leftEdgeOfPreviousColumn+=firstRowCells[leftCellIndex].offsetWidth - firstRowCells[0].offsetWidth;
Spaces around += are missing.
> Source/WebCore/inspector/front-end/DataGrid.js:1011 > + Nearest: 'nearest',
No need to align values into a column. Please use " instead of '
tonistiigi
Comment 7
2011-05-19 08:30:35 PDT
Created
attachment 94071
[details]
Patch with style fixes
Pavel Feldman
Comment 8
2011-05-19 10:47:43 PDT
Comment on
attachment 94071
[details]
Patch with style fixes View in context:
https://bugs.webkit.org/attachment.cgi?id=94071&action=review
It looks good now, thanks. One nit you don't have to fix since it is minor + would require re-review. I am marking this change as cq+ which means it'll land automatically.
> Source/WebCore/inspector/front-end/DataGrid.js:965 > + if (this.resizeMethod == WebInspector.DataGrid.ResizeMethod.Last) {
Nit: single liners do not need {}
WebKit Commit Bot
Comment 9
2011-05-19 11:15:13 PDT
Comment on
attachment 94071
[details]
Patch with style fixes Clearing flags on attachment: 94071 Committed
r86855
: <
http://trac.webkit.org/changeset/86855
>
WebKit Commit Bot
Comment 10
2011-05-19 11:15:19 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug