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

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

Issue 214663005: [DevTools] Add preferred size to WebInspector.View. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Constraints 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
Index: Source/devtools/front_end/InspectorView.js
diff --git a/Source/devtools/front_end/InspectorView.js b/Source/devtools/front_end/InspectorView.js
index b87c2c5a1f5eac780c6f23d3195b5cdd4871172f..8000c2a757125f1d530657b499a8ff27b60a490b 100644
--- a/Source/devtools/front_end/InspectorView.js
+++ b/Source/devtools/front_end/InspectorView.js
@@ -36,7 +36,7 @@ WebInspector.InspectorView = function()
{
WebInspector.VBox.call(this);
WebInspector.Dialog.setModalHostView(this);
- this.setMinimumSize(180, 72);
+ this.setConstraints(180, 72);
// DevTools sidebar is a vertical split of panels tabbed pane and a drawer.
this._drawerSplitView = new WebInspector.SplitView(false, true, "Inspector.drawerSplitViewState", 200, 200);
@@ -495,7 +495,7 @@ WebInspector.RootView.prototype = {
doResize: function()
{
- var size = this.minimumSize();
+ var size = this.constraints().minimum;
var right = Math.min(0, window.innerWidth - size.width);
this.element.style.right = right + "px";
var bottom = Math.min(0, window.innerHeight - size.height);

Powered by Google App Engine
This is Rietveld 408576698