Skip to content

Commit 327e1bc

Browse files
committed
[FIX] dashboard: hide overflow area after snappy resize
Before this commit: - The canvas was sized from the global grid instead of the overlay, causing visible white margins after the snappy resize (commit 3c8df4b). After this commit: - The dashboard applies overflow-hidden to clip the extra painted area, keeping the snappy resizing behavior. Task: 5223156
1 parent 1ba569f commit 327e1bc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/dashboard/dashboard.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<templates>
22
<t t-name="o-spreadsheet-SpreadsheetDashboard">
33
<div class="o-grid o-two-columns" t-ref="dashboard" tabindex="-1" t-on-wheel="onMouseWheel">
4-
<div class="mx-auto h-100 position-relative" t-ref="grid" t-att-style="gridContainer">
4+
<div
5+
class="mx-auto h-100 position-relative overflow-hidden"
6+
t-ref="grid"
7+
t-att-style="gridContainer">
58
<GridOverlay
69
onGridResized.bind="onGridResized"
710
onGridMoved.bind="moveCanvas"

tests/grid/__snapshots__/dashboard_grid_component.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`Grid component in dashboard mode simple dashboard rendering snapshot 1`
66
tabindex="-1"
77
>
88
<div
9-
class="mx-auto h-100 position-relative"
9+
class="mx-auto h-100 position-relative overflow-hidden"
1010
style="max-width:2496px; "
1111
>
1212
<div

0 commit comments

Comments
 (0)