mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
@ -506,11 +506,15 @@ export class Content extends Ion implements OnDestroy, OnInit {
|
|||||||
console.debug(`content, addScrollPadding, newPadding: ${newPadding}, this._scrollPadding: ${this._scrollPadding}`);
|
console.debug(`content, addScrollPadding, newPadding: ${newPadding}, this._scrollPadding: ${this._scrollPadding}`);
|
||||||
|
|
||||||
this._scrollPadding = newPadding;
|
this._scrollPadding = newPadding;
|
||||||
|
if (this._scrollEle) {
|
||||||
this._dom.write(() => {
|
this._dom.write(() => {
|
||||||
|
if (this._scrollEle) {
|
||||||
this._scrollEle.style.paddingBottom = (newPadding > 0) ? newPadding + 'px' : '';
|
this._scrollEle.style.paddingBottom = (newPadding > 0) ? newPadding + 'px' : '';
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
Reference in New Issue
Block a user