mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-27 20:58:48 +01:00
fix(sidebar): toggle performance issues (#5658)
* refactor: improve observable layout change sharing * feat: add safe delayed event of layout change * fix: replace change layout with safe change * fix: limit front card width to prevent map overflow before repaint
This commit is contained in:
parent
5cc4c19cee
commit
9eaf0bb005
13 changed files with 35 additions and 23 deletions
|
|
@ -26,7 +26,7 @@ export class TrafficChartComponent implements AfterViewInit, OnDestroy {
|
|||
|
||||
constructor(private theme: NbThemeService,
|
||||
private layoutService: LayoutService) {
|
||||
this.layoutService.onChangeLayoutSize()
|
||||
this.layoutService.onSafeChangeLayoutSize()
|
||||
.pipe(
|
||||
takeWhile(() => this.alive),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue