Summary: | Web Inspector: [Resources] Make grid columns set configurable. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eugene Klyuchnikov <eustas> | ||||||||
Component: | Web Inspector (Deprecated) | Assignee: | Eugene Klyuchnikov <eustas> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | apavlov, keishi, loislo, pfeldman, pmuellr, vsevik, web-inspector-bugs, webkit.review.bot, yurys | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Bug Depends on: | 105795 | ||||||||||
Bug Blocks: | |||||||||||
Attachments: |
|
Description
Eugene Klyuchnikov
2012-12-25 03:48:49 PST
Created attachment 180710 [details]
Patch
Comment on attachment 180710 [details]
Patch
I applied that patch and noticed that you don't persist the visible column set. The header is also misaligned with the grid once you hide one of the columns.
(In reply to comment #2) > (From update of attachment 180710 [details]) > I applied that patch and noticed that you don't persist the visible column set. The header is also misaligned with the grid once you hide one of the columns. I'll add persistence. BUT misalignment is not caused by this patch, so it should be addressed separately. Created attachment 180797 [details]
Patch
Comment on attachment 180797 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180797&action=review > Source/WebCore/inspector/front-end/NetworkPanel.js:158 > + var hiddenColumns = WebInspector.settings.hiddenNetworkLogColumns.get(); This setting should be defined in the panel. > Source/WebCore/inspector/front-end/NetworkPanel.js:161 > + if (this._detailedViewColumnsSet[hiddenColumns[i]]) At some point, we will have more columns and only some of them will be visible by default. So I don't think you need this._detailedViewColumnsSet preset. It is jus that the setting should have such value by default. > Source/WebCore/inspector/front-end/Settings.js:118 > + this.hiddenNetworkLogColumns = this.createSetting("hiddenNetworkLogColumns", []); Move to NetworkPanel.js and have a default value for it. > Source/WebCore/inspector/front-end/networkLogView.css:561 > +#network-container .hide-method-column .method-column, Now this stops being scaleable. Adding a column would require adding to this stupid rule... This (and other styles where we enumerate column names) could be addressed in another patch though. Comment on attachment 180797 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180797&action=review >> Source/WebCore/inspector/front-end/NetworkPanel.js:158 >> + var hiddenColumns = WebInspector.settings.hiddenNetworkLogColumns.get(); > > This setting should be defined in the panel. Done >> Source/WebCore/inspector/front-end/NetworkPanel.js:161 >> + if (this._detailedViewColumnsSet[hiddenColumns[i]]) > > At some point, we will have more columns and only some of them will be visible by default. So I don't think you need this._detailedViewColumnsSet preset. It is jus that the setting should have such value by default. We use this._detailedViewColumnsSet both to hold visibility and create menu items, because not all columns could be toggled, for example name and timeline are mandatory. >> Source/WebCore/inspector/front-end/Settings.js:118 >> + this.hiddenNetworkLogColumns = this.createSetting("hiddenNetworkLogColumns", []); > > Move to NetworkPanel.js and have a default value for it. Done. >> Source/WebCore/inspector/front-end/networkLogView.css:561 >> +#network-container .hide-method-column .method-column, > > Now this stops being scaleable. Adding a column would require adding to this stupid rule... This (and other styles where we enumerate column names) could be addressed in another patch though. Totally agree. It was a hard choice between scaleability and least invasiveness, but I chose the last. Fixed. Created attachment 182289 [details]
Patch
Comment on attachment 182289 [details] Patch Clearing flags on attachment: 182289 Committed r139452: <http://trac.webkit.org/changeset/139452> All reviewed patches have been landed. Closing bug. |