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

Unified Diff: Source/devtools/front_end/components/InspectorView.js

Issue 342683008: [DevTools] Fix UI extreme cases: very small window and very large zoom. (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/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)
« no previous file with comments | « Source/devtools/front_end/components/InspectedPagePlaceholder.js ('k') | Source/devtools/front_end/inspector.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698