Commit 9db0e5aac4ae8fb15c5a5504bac8aa6fa96f3938
Committed by
GitHub
Merge pull request #3702 from kalutkaz/widgetMargin
Fix widget margin
Showing
1 changed file
with
6 additions
and
0 deletions
... | ... | @@ -422,6 +422,12 @@ export class DashboardUtilsService { |
422 | 422 | widgetLayout.row = row; |
423 | 423 | widgetLayout.col = 0; |
424 | 424 | } |
425 | + | |
426 | + widgetLayout.sizeX = Math.floor(widgetLayout.sizeX); | |
427 | + widgetLayout.sizeY = Math.floor(widgetLayout.sizeY); | |
428 | + widgetLayout.row = Math.floor(widgetLayout.row); | |
429 | + widgetLayout.col = Math.floor(widgetLayout.col); | |
430 | + | |
425 | 431 | layout.widgets[widget.id] = widgetLayout; |
426 | 432 | } |
427 | 433 | ... | ... |