UI: Refactoring calc row in DashboardWidget
This commit is contained in:
parent
4219ed075f
commit
5916f31143
@ -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…
x
Reference in New Issue
Block a user