restore ForceLiveStream param
This commit is contained in:
parent
da7c9a4899
commit
d0f7abaae8
23 changed files with 149 additions and 94 deletions
|
@ -200,9 +200,9 @@ method is called on the element.
|
|||
],
|
||||
|
||||
attached: function() {
|
||||
this.positionTarget = this.positionTarget || this._defaultPositionTarget;
|
||||
// Memoize this to avoid expensive calculations & relayouts.
|
||||
this._isRTL = window.getComputedStyle(this).direction == 'rtl';
|
||||
this.positionTarget = this.positionTarget || this._defaultPositionTarget;
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -250,7 +250,7 @@ method is called on the element.
|
|||
* The horizontal offset value used to position the dropdown.
|
||||
* @param {ClientRect} dropdownRect
|
||||
* @param {ClientRect} positionRect
|
||||
* @param {boolean=false} fromRight
|
||||
* @param {boolean=} fromRight
|
||||
* @return {number} pixels
|
||||
* @private
|
||||
*/
|
||||
|
@ -270,7 +270,7 @@ method is called on the element.
|
|||
* The vertical offset value used to position the dropdown.
|
||||
* @param {ClientRect} dropdownRect
|
||||
* @param {ClientRect} positionRect
|
||||
* @param {boolean=false} fromBottom
|
||||
* @param {boolean=} fromBottom
|
||||
* @return {number} pixels
|
||||
* @private
|
||||
*/
|
||||
|
@ -288,16 +288,20 @@ method is called on the element.
|
|||
|
||||
/**
|
||||
* Called when the value of `opened` changes.
|
||||
*
|
||||
* @param {boolean} opened True if the dropdown is opened.
|
||||
* Overridden from `IronOverlayBehavior`
|
||||
*/
|
||||
_openedChanged: function(opened) {
|
||||
if (opened && this.disabled) {
|
||||
_openedChanged: function() {
|
||||
if (this.opened && this.disabled) {
|
||||
this.cancel();
|
||||
} else {
|
||||
this.cancelAnimation();
|
||||
this.sizingTarget = this.containedElement || this.sizingTarget;
|
||||
this._updateAnimationConfig();
|
||||
if (this.opened && !this.allowOutsideScroll) {
|
||||
Polymer.IronDropdownScrollManager.pushScrollLock(this);
|
||||
} else {
|
||||
Polymer.IronDropdownScrollManager.removeScrollLock(this);
|
||||
}
|
||||
Polymer.IronOverlayBehaviorImpl._openedChanged.apply(this, arguments);
|
||||
}
|
||||
},
|
||||
|
@ -306,10 +310,6 @@ method is called on the element.
|
|||
* Overridden from `IronOverlayBehavior`.
|
||||
*/
|
||||
_renderOpened: function() {
|
||||
if (!this.allowOutsideScroll) {
|
||||
Polymer.IronDropdownScrollManager.pushScrollLock(this);
|
||||
}
|
||||
|
||||
if (!this.noAnimations && this.animationConfig && this.animationConfig.open) {
|
||||
if (this.withBackdrop) {
|
||||
this.backdropElement.open();
|
||||
|
@ -325,7 +325,6 @@ method is called on the element.
|
|||
* Overridden from `IronOverlayBehavior`.
|
||||
*/
|
||||
_renderClosed: function() {
|
||||
Polymer.IronDropdownScrollManager.removeScrollLock(this);
|
||||
if (!this.noAnimations && this.animationConfig && this.animationConfig.close) {
|
||||
if (this.withBackdrop) {
|
||||
this.backdropElement.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue