| Index: third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js b/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js
|
| index 596fd73bbfa3d6badec85253855b8e1ad40e06c5..77c59e781946e5459383ec4b68131443c1596796 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/neon-animation/neon-animated-pages-extracted.js
|
| @@ -105,14 +105,14 @@
|
| // on first load, ensure we run animations only after element is attached.
|
| if (!this.isAttached) {
|
| this.async(function () {
|
| - this.playAnimation(null, {
|
| + this.playAnimation(undefined, {
|
| fromPage: null,
|
| toPage: selectedPage
|
| });
|
| });
|
|
|
| } else {
|
| - this.playAnimation(null, {
|
| + this.playAnimation(undefined, {
|
| fromPage: oldPage,
|
| toPage: selectedPage
|
| });
|
| @@ -123,6 +123,10 @@
|
| }
|
| },
|
|
|
| + /**
|
| + * @param {Object=} oldPage
|
| + * @param {Object=} selectedPage
|
| + */
|
| _completeSelectedChanged: function(oldPage, selectedPage) {
|
| if (selectedPage) {
|
| selectedPage.classList.remove('neon-animating');
|
| @@ -136,7 +140,7 @@
|
| node.classList && node.classList.remove('neon-animating');
|
| }
|
| }
|
| - this.async(this.notifyResize);
|
| + this.async(this._notifyPageResize);
|
| },
|
|
|
| _onNeonAnimationFinish: function(event) {
|
| @@ -145,6 +149,14 @@
|
| return;
|
| }
|
| this._completeSelectedChanged(event.detail.fromPage, event.detail.toPage);
|
| + },
|
| +
|
| + _notifyPageResize: function() {
|
| + var selectedPage = this.selectedItem;
|
| + this.resizerShouldNotify = function(element) {
|
| + return element == selectedPage;
|
| + }
|
| + this.notifyResize();
|
| }
|
|
|
| })
|
|
|