fix(tabs): fix preloadTabs null element reference

Closes #7109
This commit is contained in:
Adam Bradley
2016-06-29 21:15:33 -05:00
parent 55a5e83020
commit 2d19308a52

View File

@ -460,6 +460,8 @@ export class Content extends Ion {
this._tabbarPlacement = null;
let ele: HTMLElement = this._elementRef.nativeElement;
if (!ele) return;
let parentEle: HTMLElement = ele.parentElement;
let computedStyle: any;
@ -511,6 +513,8 @@ export class Content extends Ion {
let newVal: number;
let scrollEle = this._scrollEle;
if (!scrollEle) return;
// only write when it has changed
if (this._fullscreen) {
// adjust the content with padding, allowing content to scroll under headers/footers