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

Unified Diff: chrome/browser/resources/settings/device_page/layout_behavior.js

Issue 2522103002: MD Settings: Display: Fix runtime error (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/device_page/layout_behavior.js
diff --git a/chrome/browser/resources/settings/device_page/layout_behavior.js b/chrome/browser/resources/settings/device_page/layout_behavior.js
index 33e2162e7018d5708102b7e6ed868cb94407eef1..90d5990aeb2f17ea1f2cdb797d105c8dfb7305a0 100644
--- a/chrome/browser/resources/settings/device_page/layout_behavior.js
+++ b/chrome/browser/resources/settings/device_page/layout_behavior.js
@@ -83,6 +83,10 @@ var LayoutBehavior = {
*/
updateDisplayBounds(id, newBounds) {
dpapad 2016/11/23 01:48:51 I am confused by the mixing of ES6 and non-ES6 syn
stevenjb 2016/11/23 17:40:46 Oversight on my part. I wish we could enforce this
this.dragLayoutId = id;
+ if (this.displays.length < 2) {
dpapad 2016/11/23 01:48:51 Where is |this.displays| defined? Did not find it
stevenjb 2016/11/23 17:40:46 Ah, you're right, I should actually move this chec
+ this.dragBounds_ = newBounds;
+ return newBounds;
+ }
// Find the closest parent.
var closestId = this.findClosest_(id, newBounds);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698