Bug 154218

Summary: Web Inspector: Sidebars are defaulting to their minimum width, instead of a good width
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Web InspectorAssignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Screenshot of the Bug
none
Expected Default Width
none
Patch
none
Patch none

Description Timothy Hatcher 2016-02-13 10:37:55 PST
Created attachment 271289 [details]
Screenshot of the Bug

I keep having skinny sidebars, which at at their minimum width. They use to default to a good visual width instead. I suspect this regressed from the changes to calculate the minimum width based on the navigation bars.
Comment 1 Radar WebKit Bug Importer 2016-02-13 10:38:09 PST
<rdar://problem/24644192>
Comment 2 Timothy Hatcher 2016-02-13 10:38:11 PST
Created attachment 271290 [details]
Expected Default Width
Comment 3 Timothy Hatcher 2016-02-13 17:15:36 PST
Created attachment 271302 [details]
Patch
Comment 4 Devin Rousso 2016-02-13 17:18:53 PST
Comment on attachment 271302 [details]
Patch

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

> Source/WebInspectorUI/UserInterface/Views/SidebarPanel.js:36
> +        this._widthSetting = new WebInspector.Setting(identifier + "-sidebar-panel-width", 300);

NIT: Would it be better to put this as something similar to what "WebInspector.Sidebar.AbsoluteMinimumWidth" has?  Maybe "WebInspector.Sidebar.InitialWidth = 300;"?
Comment 5 Timothy Hatcher 2016-02-15 13:20:01 PST
Created attachment 271364 [details]
Patch
Comment 6 Timothy Hatcher 2016-02-15 13:20:48 PST
Ugh, wrong bug webkit-patch!
Comment 7 Timothy Hatcher 2016-02-15 13:24:56 PST
Comment on attachment 271302 [details]
Patch

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

>> Source/WebInspectorUI/UserInterface/Views/SidebarPanel.js:36
>> +        this._widthSetting = new WebInspector.Setting(identifier + "-sidebar-panel-width", 300);
> 
> NIT: Would it be better to put this as something similar to what "WebInspector.Sidebar.AbsoluteMinimumWidth" has?  Maybe "WebInspector.Sidebar.InitialWidth = 300;"?

Most other settings have the default value inline. If we needed it else where, I would agree.
Comment 8 Joseph Pecoraro 2016-02-15 13:25:34 PST
Comment on attachment 271302 [details]
Patch

r=me
Comment 9 WebKit Commit Bot 2016-02-15 13:30:01 PST
Comment on attachment 271302 [details]
Patch

Clearing flags on attachment: 271302

Committed r196596: <http://trac.webkit.org/changeset/196596>
Comment 10 WebKit Commit Bot 2016-02-15 13:30:03 PST
All reviewed patches have been landed.  Closing bug.