From 6c3f06514782bc56f553a38286fd9c0bf9c1262c Mon Sep 17 00:00:00 2001 From: gray Date: Sun, 2 Nov 2014 11:32:06 -0800 Subject: [PATCH] force devtools to show as undocked. --- atom/browser/api/atom_api_web_contents.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 6b5cc85859c2..9c878adf507e 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -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,