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

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

Issue 197823010: [DevTools] Add minimum size to WebInspector.View. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@splitdip2
Patch Set: 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/TabbedPane.js
diff --git a/Source/devtools/front_end/TabbedPane.js b/Source/devtools/front_end/TabbedPane.js
index 4d69b54e900ae660942d819d2e4db6c203f65879..b780cbb49747b87169c641504dbdc009999b6b8c 100644
--- a/Source/devtools/front_end/TabbedPane.js
+++ b/Source/devtools/front_end/TabbedPane.js
@@ -377,6 +377,19 @@ WebInspector.TabbedPane.prototype = {
this.selectTab(effectiveTab.id);
},
+ /**
+ * @return {!Size}
+ */
+ calculateMinimumSize: function()
+ {
+ var size = WebInspector.VBox.prototype.calculateMinimumSize.call(this);
+ if (this._verticalTabLayout)
+ size.width += this._headerElement.offsetWidth;
+ else
+ size.height += this._headerElement.offsetHeight;
+ return size;
+ },
+
_updateTabElements: function()
{
WebInspector.invokeOnceAfterBatchUpdate(this, this._innerUpdateTabElements);

Powered by Google App Engine
This is Rietveld 408576698