commit | 7deb66bfa347facf0c5e67a7fd72bae7e3b6206d | [log] [tgz] |
---|---|---|
author | Jimmy Seto <[email protected]> | Wed Sep 27 18:54:16 2023 |
committer | Devtools-frontend LUCI CQ <devtools-frontend-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 28 14:22:46 2023 |
tree | 7cdfe2d763f3ca7686ad4f0b21aadb6000ae0904 | |
parent | f35a07c286304f73bbb20bdfba13e0283133258e [diff] |
Make toolbar wrappable for Background services When resizing DevTools, "Show events from other storage partitions" checkbox from the Background services toolbar gets cutoff/hidden. This change makes the toolbar wrappable to help alleviate the issue. Before: https://imgur.com/a/6rua6vk After: https://imgur.com/a/qwFGWNL Bug: 1487276 Change-Id: Ib92ea542a893520e67125e1f875abe74d4e267f7 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4896278 Reviewed-by: Changhao Han <[email protected]> Commit-Queue: Changhao Han <[email protected]>
diff --git a/front_end/panels/application/BackgroundServiceView.ts b/front_end/panels/application/BackgroundServiceView.ts index 31bab52..0cc2039 100644 --- a/front_end/panels/application/BackgroundServiceView.ts +++ b/front_end/panels/application/BackgroundServiceView.ts
@@ -230,6 +230,7 @@ * Creates the toolbar UI element. */ private async setupToolbar(): Promise<void> { + this.toolbar.makeWrappable(true); this.recordButton = (UI.Toolbar.Toolbar.createActionButton(this.recordAction) as UI.Toolbar.ToolbarToggle); this.toolbar.appendToolbarItem(this.recordButton);