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

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

Issue 341543003: DevTools: make responsive design a master switch for emulation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/ui/TabbedPane.js
diff --git a/Source/devtools/front_end/ui/TabbedPane.js b/Source/devtools/front_end/ui/TabbedPane.js
index 9d41fcb809499ff4dce2f712f6c5152d8075ce5d..78b088dec2faacad9b0fbe25db0bff0044afb5cb 100644
--- a/Source/devtools/front_end/ui/TabbedPane.js
+++ b/Source/devtools/front_end/ui/TabbedPane.js
@@ -1147,8 +1147,10 @@ WebInspector.ExtensibleTabbedPaneController.prototype = {
_toggleSettingBasedView: function(id, title, setting)
{
this._tabbedPane.closeTab(id);
- if (setting.get())
+ if (setting.get()) {
this._tabbedPane.appendTab(id, title, new WebInspector.View());
+ this._tabbedPane.selectTab(id);
+ }
},
/**

Powered by Google App Engine
This is Rietveld 408576698