Commit 95a6ac68 authored by Jan Scheffler's avatar Jan Scheffler Committed by Commit Bot

[devtools] update min width of debug panel

This patch adds a min width to the debug panel
in the sources panel to keep it from overflowing.

Bug: chrome:841745
Change-Id: Id33fb70555a1d12a732c803fdf398a165a507ada
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1786442
Commit-Queue: Jan Scheffler <janscheffler@google.com>
Reviewed-by: default avatarYang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696731}
parent 65666265
...@@ -889,7 +889,9 @@ Sources.SourcesPanel = class extends UI.Panel { ...@@ -889,7 +889,9 @@ Sources.SourcesPanel = class extends UI.Panel {
const vbox = new UI.VBox(); const vbox = new UI.VBox();
vbox.element.appendChild(this._debugToolbar.element); vbox.element.appendChild(this._debugToolbar.element);
vbox.element.appendChild(this._debugToolbarDrawer); vbox.element.appendChild(this._debugToolbarDrawer);
vbox.setMinimumAndPreferredSizes(25, 25, Sources.SourcesPanel.minToolbarWidth, 100);
vbox.setMinimumAndPreferredSizes(
Sources.SourcesPanel.minToolbarWidth, 25, Sources.SourcesPanel.minToolbarWidth, 100);
this._sidebarPaneStack = UI.viewManager.createStackLocation(this._revealDebuggerSidebar.bind(this)); this._sidebarPaneStack = UI.viewManager.createStackLocation(this._revealDebuggerSidebar.bind(this));
this._sidebarPaneStack.widget().element.classList.add('overflow-auto'); this._sidebarPaneStack.widget().element.classList.add('overflow-auto');
this._sidebarPaneStack.widget().show(vbox.element); this._sidebarPaneStack.widget().show(vbox.element);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment