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

Unified Diff: Source/devtools/front_end/SidebarPane.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/SidebarPane.js
diff --git a/Source/devtools/front_end/SidebarPane.js b/Source/devtools/front_end/SidebarPane.js
index 5064d6698a993ba5d58bec375857e118c4dbf670..0fcbab2624dadf23e9d6604a2fe6807dea6e118d 100644
--- a/Source/devtools/front_end/SidebarPane.js
+++ b/Source/devtools/front_end/SidebarPane.js
@@ -33,7 +33,7 @@
WebInspector.SidebarPane = function(title)
{
WebInspector.View.call(this);
- this.setMinimumSize(25, 0);
+ this.setConstraints(25, 0);
this.element.className = "sidebar-pane"; // Override
this.titleElement = document.createElement("div");
@@ -161,7 +161,7 @@ WebInspector.SidebarPaneTitle.prototype = {
WebInspector.SidebarPaneStack = function()
{
WebInspector.View.call(this);
- this.setMinimumSize(25, 0);
+ this.setConstraints(25, 0);
this.element.className = "sidebar-pane-stack"; // Override
this.registerRequiredCSS("sidebarPane.css");
}

Powered by Google App Engine
This is Rietveld 408576698