From 70e0d02227b60032f34e7e839dc6aa70575a9b68 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 25 Jan 2023 14:41:53 +0200 Subject: [PATCH] Add a workaround for sticky update bug on sidebar toggle --- .../page-content/page-content.component.ts | 115 ++++++++++++------ .../sidebar/layout.service.ts | 6 +- .../sidebar/sidebar-content.component.ts | 2 +- 3 files changed, 85 insertions(+), 38 deletions(-) diff --git a/dashboard/sharedComponents/page-content/page-content.component.ts b/dashboard/sharedComponents/page-content/page-content.component.ts index 64ff4522..2642a1e4 100644 --- a/dashboard/sharedComponents/page-content/page-content.component.ts +++ b/dashboard/sharedComponents/page-content/page-content.component.ts @@ -2,14 +2,15 @@ import { AfterViewInit, ChangeDetectorRef, Component, - ElementRef, Inject, + ElementRef, + Inject, Input, OnDestroy, - OnInit, PLATFORM_ID, + OnInit, + PLATFORM_ID, ViewChild } from "@angular/core"; import {LayoutService} from "../sidebar/layout.service"; -import {Subscription} from "rxjs"; declare var UIkit; declare var ResizeObserver; @@ -18,8 +19,8 @@ declare var ResizeObserver; selector: '[page-content]', template: `
-