Fix menu height
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
Details
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
Details
parent
71e7467c17
commit
40429a67ef
|
@ -33,13 +33,14 @@ export class SidePanelComponent implements OnChanges {
|
|||
}
|
||||
|
||||
setTop() {
|
||||
this.mobile = this.checkMobile() && ! this.left;
|
||||
this.mobile = this.left?false: this.checkMobile();
|
||||
this.resizeTop = this.mobile?50:0;
|
||||
this.top = (this.visible?this.resizeTop: (this.mobile? 100:0)) + "%";
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.parentHeight = this.element.nativeElement.offsetParent.clientHeight;
|
||||
this.setTop();
|
||||
}
|
||||
|
||||
handleToggleClick(event) {
|
||||
|
|
Loading…
Reference in New Issue