Index: Source/devtools/front_end/components/InspectorView.js |
diff --git a/Source/devtools/front_end/components/InspectorView.js b/Source/devtools/front_end/components/InspectorView.js |
index 259a4904eb366508f1808938b33c63e1bb9ba1d1..799c24b9c50f1fb43c8e29379144c218c3e3fa65 100644 |
--- a/Source/devtools/front_end/components/InspectorView.js |
+++ b/Source/devtools/front_end/components/InspectorView.js |
@@ -541,9 +541,10 @@ WebInspector.RootView.prototype = { |
doResize: function() |
{ |
var size = this.constraints().minimum; |
- var right = Math.min(0, window.innerWidth - size.width); |
+ var zoom = WebInspector.zoomManager.zoomFactor(); |
+ var right = Math.min(0, window.innerWidth - size.width / zoom); |
this.element.style.right = right + "px"; |
- var bottom = Math.min(0, window.innerHeight - size.height); |
+ var bottom = Math.min(0, window.innerHeight - size.height / zoom); |
this.element.style.bottom = bottom + "px"; |
if (window.innerWidth < size.width || window.innerHeight < size.height) |