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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
0 deletions
-
ui-ngx/src/app/modules/home/components/widget/widget.component.ts
-
ui-ngx/src/app/modules/home/models/widget-component.models.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) { |
|
|
|
|
|
|
|
@ -449,6 +449,8 @@ export class WidgetContext { |
|
|
|
labelPattern.destroy(); |
|
|
|
} |
|
|
|
this.labelPatterns.clear(); |
|
|
|
this.width = undefined; |
|
|
|
this.height = undefined; |
|
|
|
this.destroyed = true; |
|
|
|
} |
|
|
|
|
|
|
|
|