fix(content): adjust footer bottom based on the tabbar without padding

This commit is contained in:
Brandy Carney
2016-06-27 12:13:26 -04:00
parent 90d0d33270
commit 4567de2aea
3 changed files with 10 additions and 4 deletions

View File

@ -530,14 +530,14 @@ export class Content extends Ion {
newVal = this._footerHeight + this._paddingBottom;
if (this._tabbarPlacement === 'bottom') {
newVal += this._tabbarHeight;
if (newVal > 0 && this._footerEle) {
this._footerEle.style.bottom = (newVal - this._footerHeight - this._paddingBottom) + 'px';
}
}
if (newVal !== this.adjustedBottom) {
scrollEle.style.paddingBottom = (newVal > 0 ? newVal + 'px' : '');
this.adjustedBottom = newVal;
if (newVal > 0 && this._footerEle) {
this._footerEle.style.bottom = (newVal - this._footerHeight) + 'px';
}
}
} else {