Browse Source

Merge pull request #11097 from rusikv/bug/hidden-widget-rendering

Fixed hidden widgets not rendering properly in edit mode
pull/11269/head
Igor Kulikov 2 years ago
committed by GitHub
parent
commit
74800202c9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      ui-ngx/src/app/modules/home/components/widget/widget.component.ts
  2. 2
      ui-ngx/src/app/modules/home/models/widget-component.models.ts

1
ui-ngx/src/app/modules/home/components/widget/widget.component.ts

@ -487,6 +487,7 @@ export class WidgetComponent extends PageComponent implements OnInit, AfterViewI
}
if (!this.widgetContext.inited && this.isReady()) {
this.widgetContext.inited = true;
this.widgetContext.destroyed = false;
this.dashboardWidget.updateWidgetParams();
this.widgetContext.detectContainerChanges();
if (this.cafs.init) {

2
ui-ngx/src/app/modules/home/models/widget-component.models.ts

@ -449,6 +449,8 @@ export class WidgetContext {
labelPattern.destroy();
}
this.labelPatterns.clear();
this.width = undefined;
this.height = undefined;
this.destroyed = true;
}

Loading…
Cancel
Save