Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1935)

Unified Diff: Source/devtools/front_end/Main.js

Issue 197823010: [DevTools] Add minimum size to WebInspector.View. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@splitdip2
Patch Set: fixed comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/InspectorView.js ('k') | Source/devtools/front_end/Panel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/Main.js
diff --git a/Source/devtools/front_end/Main.js b/Source/devtools/front_end/Main.js
index 194f9ab7440c80952a19bbf11bce14e8e1f661b9..4a754e250bfd03e445d5d3f7d1597d21c6435f13 100644
--- a/Source/devtools/front_end/Main.js
+++ b/Source/devtools/front_end/Main.js
@@ -80,8 +80,6 @@ WebInspector.Main.prototype = {
this._rootSplitView = new WebInspector.SplitView(false, true, WebInspector.dockController.canDock() ? "InspectorView.splitViewState" : "InspectorView.dummySplitViewState", 300, 300);
this._rootSplitView.show(rootView.element);
- this._rootSplitView.setSidebarElementConstraints(180, 50);
- this._rootSplitView.setMainElementConstraints(WebInspector.InspectedPagePlaceholder.Constraints.Width, WebInspector.InspectedPagePlaceholder.Constraints.Height);
WebInspector.inspectorView.show(this._rootSplitView.sidebarElement());
@@ -91,7 +89,7 @@ WebInspector.Main.prototype = {
WebInspector.dockController.addEventListener(WebInspector.DockController.Events.DockSideChanged, this._updateRootSplitViewOnDockSideChange, this);
this._updateRootSplitViewOnDockSideChange();
- rootView.show(document.body);
+ rootView.attachToBody();
},
_updateRootSplitViewOnDockSideChange: function()
« no previous file with comments | « Source/devtools/front_end/InspectorView.js ('k') | Source/devtools/front_end/Panel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698