prevent black flicker

Closes #111
This commit is contained in:
Adam Bradley
2015-09-14 23:26:42 -05:00
parent 8039eae2d2
commit 64e7a083f5
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,6 @@ $outer-content-md-background-color: #efeff4 !default;
background: $outer-content-md-background-color;
}
ion-nav {
ion-nav.has-views {
background: #000;
}

View File

@ -474,6 +474,10 @@ export class ViewController extends Ion {
// allow clicks again
ClickBlock(false);
this.app.setTransitioning(false);
if (this.items.length === 1) {
this.elementRef.nativeElement.classList.add('has-views');
}
}
/**