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

Unified Diff: Source/devtools/front_end/components/InspectedPagePlaceholder.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
« no previous file with comments | « no previous file | Source/devtools/front_end/components/InspectorView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/components/InspectedPagePlaceholder.js
diff --git a/Source/devtools/front_end/components/InspectedPagePlaceholder.js b/Source/devtools/front_end/components/InspectedPagePlaceholder.js
index 48436c9a285a5f28f0b6da2485ada4c3c3954498..f2112e035163120bc0e3845ecd5b3a016e510e7f 100644
--- a/Source/devtools/front_end/components/InspectedPagePlaceholder.js
+++ b/Source/devtools/front_end/components/InspectedPagePlaceholder.js
@@ -115,7 +115,7 @@ WebInspector.InspectedPagePlaceholder.prototype = {
{
delete this._updateId;
var rect = this._dipPageRect();
- var bounds = { x: Math.round(rect.x), y: Math.round(rect.y), height: Math.round(rect.height), width: Math.round(rect.width) };
+ var bounds = { x: Math.round(rect.x), y: Math.round(rect.y), height: Math.max(1, Math.round(rect.height)), width: Math.max(1, Math.round(rect.width)) };
this.dispatchEventToListeners(WebInspector.InspectedPagePlaceholder.Events.Update, bounds);
},
« no previous file with comments | « no previous file | Source/devtools/front_end/components/InspectorView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698