Update dashboard properties widget style for Reflow (#9976)

* layout properties in 2 columns

* fix height after collapsing

* update with reflow values

* set height better

* cleanup

* fix crashing when resizing while properties widget is loading

* Switch to grid layout

* Only two columns max

* Update comment

* Undo color change

* Cleanup

* Fix test

Co-authored-by: chgagnon <chgagnon@microsoft.com>
This commit is contained in:
Kim Santiago
2020-04-16 20:23:35 -07:00
committed by GitHub
parent 02ae1ecff8
commit 530ec8c19d
7 changed files with 123 additions and 53 deletions

View File

@@ -165,6 +165,10 @@ export class DashboardWidgetWrapper extends AngularDisposable implements OnInit
this._actionbar.pull(this._actionbar.length() - 1);
}
public get component(): IDashboardWidget {
return this._component;
}
private loadWidget(): void {
if (Object.keys(this._config.widget).length !== 1) {
this.logService.error('Exactly 1 widget must be defined per space');