Browse Source

UI: Refactoring calc row in DashboardWidget

pull/12105/head
Vladyslav_Prykhodko 2 years ago
parent
commit
5916f31143
  1. 3
      ui-ngx/src/app/modules/home/models/dashboard-component.models.ts

3
ui-ngx/src/app/modules/home/models/dashboard-component.models.ts

@ -761,8 +761,7 @@ export class DashboardWidget implements GridsterItem, IDashboardWidget {
} else {
res = this.sizeY;
}
res = Math.floor(res);
return res === 0 ? 1 : res;
return Math.max(Math.floor(res), 1);
}
set rows(rows: number) {

Loading…
Cancel
Save