AW-6046 Angular improvement
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component, Input,Output,ViewChild,EventEmitter, ElementRef,OnChanges,SimpleChanges,HostListener,ChangeDetectorRef, ViewEncapsulation } from '@angular/core';
|
||||
import { Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, Output, SimpleChanges, ViewChild } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'fm-side-panel',
|
||||
@@ -22,7 +22,7 @@ export class SidePanelComponent implements OnChanges {
|
||||
private resizeTop=50;
|
||||
public resizing=false;
|
||||
|
||||
constructor(private element: ElementRef,private ref: ChangeDetectorRef) {
|
||||
constructor(private element: ElementRef) {
|
||||
this.collapsable = false;
|
||||
this.setTop();
|
||||
}
|
||||
@@ -46,7 +46,7 @@ export class SidePanelComponent implements OnChanges {
|
||||
this.setTop();
|
||||
}
|
||||
|
||||
handleToggleClick(event) {
|
||||
handleToggleClick() {
|
||||
if (this.collapsable) {
|
||||
this.collapsed = !this.collapsed;
|
||||
}
|
||||
@@ -85,7 +85,7 @@ export class SidePanelComponent implements OnChanges {
|
||||
}
|
||||
|
||||
@HostListener('window:resize', ['$event'])
|
||||
handleResize(event) {
|
||||
handleResize() {
|
||||
this.setTop();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user