Chromium Code Reviews| Index: chrome/browser/resources/ntp4/apps_page.js |
| diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js |
| index a81c34399f8767ee419b1e6af00010164b45ac51..904bf56589d5d1c6f866ff4648077f0f94fa2200 100644 |
| --- a/chrome/browser/resources/ntp4/apps_page.js |
| +++ b/chrome/browser/resources/ntp4/apps_page.js |
| @@ -412,6 +412,13 @@ cr.define('ntp4', function() { |
| * @param {?boolean} animate If true, the app tile plays an animation. |
| */ |
| appendApp: function(appData, animate) { |
| + if (animate) { |
| + // Select the page and scroll all the way down so the animation is |
| + // visible. |
| + ntp4.getCardSlider().selectCardByValue(this); |
| + console.log('selecting card'); |
|
Rick Byers
2011/08/29 16:01:00
We don't generally want to leave diagnostic loggin
Evan Stade
2011/08/29 18:15:16
correct, left here by mistake
|
| + this.content_.scrollTop = this.content_.scrollHeight; |
| + } |
| this.appendTile(new App(appData), animate); |
| }, |