Commit e7b341c5 authored by luoe's avatar luoe Committed by Commit Bot

DevTools: the sources debug toolbar buttons should not be drag targets

BUG=728789

Review-Url: https://codereview.chromium.org/2915013003
Cr-Commit-Position: refs/heads/master@{#476500}
parent 00471e4d
......@@ -1056,7 +1056,7 @@ Sources.SourcesPanel = class extends UI.Panel {
this._sidebarPaneStack.showView(jsBreakpoints);
this._extensionSidebarPanesContainer = this._sidebarPaneStack;
this.sidebarPaneView = vbox;
this._splitWidget.uninstallResizer(this._debugToolbar.element);
this._splitWidget.uninstallResizer(this._debugToolbar.gripElementForResize());
} else {
var splitWidget = new UI.SplitWidget(true, true, 'sourcesPanelDebuggerSidebarSplitViewState', 0.5);
splitWidget.setMainWidget(vbox);
......@@ -1068,7 +1068,7 @@ Sources.SourcesPanel = class extends UI.Panel {
splitWidget.setSidebarWidget(tabbedLocation.tabbedPane());
this._tabbedLocationHeader = tabbedLocation.tabbedPane().headerElement();
this._splitWidget.installResizer(this._tabbedLocationHeader);
this._splitWidget.installResizer(this._debugToolbar.element);
this._splitWidget.installResizer(this._debugToolbar.gripElementForResize());
tabbedLocation.appendView(scopeChainView);
tabbedLocation.appendView(this._watchSidebarPane);
this._extensionSidebarPanesContainer = tabbedLocation;
......
......@@ -193,6 +193,13 @@ UI.Toolbar = class {
return UI.Toolbar.createActionButton(/** @type {!UI.Action} */ (action));
}
/**
* @return {!Element}
*/
gripElementForResize() {
return this._contentElement;
}
/**
* @param {boolean=} reverse
* @param {boolean=} growVertically
......
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