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

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

Issue 71633003: DevTools: added "overlayContents" mode, where DevTools content is placed around and underneath inse… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years 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
« no previous file with comments | « no previous file | Source/devtools/front_end/HelpScreen.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/Drawer.js
diff --git a/Source/devtools/front_end/Drawer.js b/Source/devtools/front_end/Drawer.js
index c14c811c4e5aa4d3731fad6f62da043be6ebf01b..c2c870a758e11001d5c7c798579087d60a7e4017 100644
--- a/Source/devtools/front_end/Drawer.js
+++ b/Source/devtools/front_end/Drawer.js
@@ -36,7 +36,7 @@ WebInspector.Drawer = function(inspectorView)
{
this._inspectorView = inspectorView;
- this.element = this._inspectorView.element.createChild("div", "drawer");
+ this.element = this._inspectorView.devtoolsElement().createChild("div", "drawer");
this.element.style.flexBasis = 0;
this._savedHeight = 200; // Default.
@@ -74,7 +74,7 @@ WebInspector.Drawer.prototype = {
_constrainHeight: function(height)
{
- return Number.constrain(height, Preferences.minConsoleHeight, this._inspectorView.element.offsetHeight - Preferences.minConsoleHeight);
+ return Number.constrain(height, Preferences.minConsoleHeight, this._inspectorView.devtoolsElement().offsetHeight - Preferences.minConsoleHeight);
},
isHiding: function()
@@ -318,7 +318,7 @@ WebInspector.Drawer.prototype = {
_statusBarDragging: function(event)
{
var height = window.innerHeight - event.pageY + this._statusBarDragOffset;
- height = Number.constrain(height, Preferences.minConsoleHeight, this._inspectorView.element.offsetHeight - Preferences.minConsoleHeight);
+ height = Number.constrain(height, Preferences.minConsoleHeight, this._inspectorView.devtoolsElement().offsetHeight - Preferences.minConsoleHeight);
this.element.style.flexBasis = height + "px";
if (this._inspectorView.currentPanel())
« no previous file with comments | « no previous file | Source/devtools/front_end/HelpScreen.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698