| Index: third_party/polymer/v1_0/components-chromium/iron-dropdown/iron-dropdown-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/iron-dropdown/iron-dropdown-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-dropdown/iron-dropdown-extracted.js
|
| index 228869e7cd232fb6c896f083139be095f89e52bc..a157303d14e32bc1b96af344608a39796e17ae9a 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/iron-dropdown/iron-dropdown-extracted.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/iron-dropdown/iron-dropdown-extracted.js
|
| @@ -122,8 +122,15 @@
|
| this._refitOnScrollRAF = null;
|
| },
|
|
|
| + attached: function () {
|
| + if (!this.sizingTarget || this.sizingTarget === this) {
|
| + this.sizingTarget = this.containedElement;
|
| + }
|
| + },
|
| +
|
| detached: function() {
|
| this.cancelAnimation();
|
| + document.removeEventListener('scroll', this._boundOnCaptureScroll);
|
| Polymer.IronDropdownScrollManager.removeScrollLock(this);
|
| },
|
|
|
| @@ -136,7 +143,6 @@
|
| this.cancel();
|
| } else {
|
| this.cancelAnimation();
|
| - this.sizingTarget = this.containedElement || this.sizingTarget;
|
| this._updateAnimationConfig();
|
| this._saveScrollPosition();
|
| if (this.opened) {
|
|
|