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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 this._updateTabElements(); 370 this._updateTabElements();
371 }, 371 },
372 372
373 wasShown: function() 373 wasShown: function()
374 { 374 {
375 var effectiveTab = this._currentTab || this._tabsHistory[0]; 375 var effectiveTab = this._currentTab || this._tabsHistory[0];
376 if (effectiveTab) 376 if (effectiveTab)
377 this.selectTab(effectiveTab.id); 377 this.selectTab(effectiveTab.id);
378 }, 378 },
379 379
380 /**
381 * @return {!Size}
382 */
383 calculateMinimumSize: function()
384 {
385 var size = WebInspector.VBox.prototype.calculateMinimumSize.call(this);
386 if (this._verticalTabLayout)
387 size.width += this._headerElement.offsetWidth;
388 else
389 size.height += this._headerElement.offsetHeight;
390 return size;
391 },
392
380 _updateTabElements: function() 393 _updateTabElements: function()
381 { 394 {
382 WebInspector.invokeOnceAfterBatchUpdate(this, this._innerUpdateTabElemen ts); 395 WebInspector.invokeOnceAfterBatchUpdate(this, this._innerUpdateTabElemen ts);
383 }, 396 },
384 397
385 /** 398 /**
386 * @param {string} text 399 * @param {string} text
387 */ 400 */
388 setPlaceholderText: function(text) 401 setPlaceholderText: function(text)
389 { 402 {
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 { 1063 {
1051 } 1064 }
1052 1065
1053 WebInspector.TabbedPaneTabDelegate.prototype = { 1066 WebInspector.TabbedPaneTabDelegate.prototype = {
1054 /** 1067 /**
1055 * @param {!WebInspector.TabbedPane} tabbedPane 1068 * @param {!WebInspector.TabbedPane} tabbedPane
1056 * @param {!Array.<string>} ids 1069 * @param {!Array.<string>} ids
1057 */ 1070 */
1058 closeTabs: function(tabbedPane, ids) { } 1071 closeTabs: function(tabbedPane, ids) { }
1059 } 1072 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698