Chromium Code Reviews| 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); |