Fix a bug with sticky condition in page-content
This commit is contained in:
parent
9a03dd9a3d
commit
f38c56fa7d
|
@ -50,7 +50,7 @@ export class PageContentComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
get isStickyActive() {
|
get isStickyActive() {
|
||||||
if(this.header && this.actions) {
|
if(this.header && this.actions && this.shouldSticky) {
|
||||||
let sticky = (this.headerSticky)?this.header.nativeElement:this.actions.nativeElement;
|
let sticky = (this.headerSticky)?this.header.nativeElement:this.actions.nativeElement;
|
||||||
return UIkit.sticky(sticky).isActive;
|
return UIkit.sticky(sticky).isActive;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue