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

Unified Diff: chrome/browser/resources/options/chromeos/display_options.js

Issue 1631893003: In display options, lay out the primary display first (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_576375_display3c_fix_0
Patch Set: Created 4 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/chromeos/display_options.js
diff --git a/chrome/browser/resources/options/chromeos/display_options.js b/chrome/browser/resources/options/chromeos/display_options.js
index 17ee9a4b7890ef790b107b9be0aa07288371f5b2..4e762ca13b46912ea05dbc84a67c8162659c2ceb 100644
--- a/chrome/browser/resources/options/chromeos/display_options.js
+++ b/chrome/browser/resources/options/chromeos/display_options.js
@@ -1043,10 +1043,14 @@ cr.define('options', function() {
};
// Layout the display rectangles. First layout the primary display and
- // then layout the secondary which is attached to the primary.
+ // then layout any secondary displays.
+ this.createDisplayLayoutDiv_(
+ this.displayLayoutMap_[this.primaryDisplayId_], layoutType, offset);
for (var i = 0; i < this.displays_.length; i++) {
- this.createDisplayLayoutDiv_(
- this.displayLayoutMap_[this.displays_[i].id], layoutType, offset);
+ if (!this.displays_[i].isPrimary) {
+ this.createDisplayLayoutDiv_(
+ this.displayLayoutMap_[this.displays_[i].id], layoutType, offset);
+ }
}
},
« 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