]> khamidou — GitHub mirrors - electron.git/commitdiff
force devtools to show as undocked.
authorgray <gray@webpushers.com>
Sun, 2 Nov 2014 19:32:06 +0000 (11:32 -0800)
committergray <gray@webpushers.com>
Sun, 2 Nov 2014 19:32:06 +0000 (11:32 -0800)
atom/browser/api/atom_api_web_contents.cc

index 6b5cc85859c2b2bf7b30a826ece87c715c5943e1..9c878adf507e465ba0c4a1a847649f3e47a8d18b 100644 (file)
@@ -376,6 +376,9 @@ void WebContents::ExecuteJavaScript(const base::string16& code) {
 
 void WebContents::OpenDevTools() {
   inspectable_web_contents()->ShowDevTools();
+
+  // force the inspectable web contents to be undocked when it is opened.
+  inspectable_web_contents()->GetView()->SetIsDocked(false);
 }
 
 bool WebContents::SendIPCMessage(const base::string16& channel,