Commit 5e93fa16 authored by ivankr@chromium.org's avatar ivankr@chromium.org

[cros] Fix UserImagesGrid display regression.

*) Set autoExpands=true for UserImagesGrid so that added items are actually created (regression after ).
*) Typo fix for old UI, which prevented it from working.

TBR=ygorshenin1
BUG=None
TEST=Manual: chrome://chrome/settings/changePicture should display the image grid properly

Review URL: https://chromiumcodereview.appspot.com/10829428

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152334 0039d316-1c4b-4281-b951-d872f2087c98
parent 39d9946a
......@@ -292,7 +292,7 @@ cr.define('oobe', function() {
* including URL, title, author and website.
* @private
*/
setDefaultImages_: function(images) {
setDefaultImages_: function(imagesData) {
var imageGrid = $('user-image-grid');
for (var i = 0, data; data = imagesData[i]; i++) {
imageGrid.addItem(data.url, data.title);
......
......@@ -146,6 +146,7 @@ cr.define('options', function() {
this.addEventListener('dblclick', this.handleDblClick_.bind(this));
this.addEventListener('change', this.handleChange_.bind(this));
this.setAttribute('role', 'listbox');
this.autoExpands = true;
},
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment