| Summary: | Web Inspector: REGRESSION(r257835): close and undock buttons are shown in remote inspector | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> | ||||
| Component: | Web Inspector | Assignee: | Devin Rousso <hi> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bburg, hi, inspector-bugzilla-changes, timothy, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Local Build | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Bug Depends on: | 208555 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Devin Rousso
2020-03-20 10:19:58 PDT
Created attachment 394097 [details]
Patch
Comment on attachment 394097 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394097&action=review r=me > Source/WebInspectorUI/UserInterface/Base/Main.js:900 > + WI.tabBar.resetCachedWidths(); How does the tabBar invalidate cached widths when the inspector window / view is resized? Surprised this is only called in one place. > Source/WebInspectorUI/UserInterface/Base/Main.js:2359 > + let closeHidden = WI._closeTabBarButton?.hidden; o_O I guess it's OK! Committed r258778: <https://trac.webkit.org/changeset/258778> All reviewed patches have been landed. Closing bug and clearing flags on attachment 394097 [details]. Comment on attachment 394097 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394097&action=review >> Source/WebInspectorUI/UserInterface/Base/Main.js:900 >> + WI.tabBar.resetCachedWidths(); > > How does the tabBar invalidate cached widths when the inspector window / view is resized? Surprised this is only called in one place. When we're docked, the size of each `WI.TabBarItem` should never change, as we don't expand to fill available space. When undocked, however, `WI.TabBarItem` do expand to fill as much available space as possible. Along these lines, we have logic inside `WI.TabBar.prototype.layout` that handles this exact scenario :) <https://trac.webkit.org/browser/webkit/trunk/Source/WebInspectorUI/UserInterface/Views/TabBar.js?rev=258623#L469> |