Skip to content

Commit 1a4bbdb

Browse files
author
Adam Argyle
committed
fixes margin and padding regression
1 parent 46f1e39 commit 1a4bbdb

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

app/components/selection/box-model.element.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ export class BoxModel extends HTMLElement {
2828
this.drawable = {
2929
height: bounds.height,
3030
width: bounds.width,
31-
top: bounds.top + window.scrollY,
32-
left: bounds.left,
31+
top: 0,
32+
left: 0,
3333
rotation: 'rotate(-45)',
3434
}
3535
}
3636
else if (mode === 'margin') {
3737
this.drawable = {
3838
height: total_height,
3939
width: total_width,
40-
top: bounds.top + window.scrollY - sides.top,
41-
left: bounds.left - sides.left,
40+
top: 0 - sides.top,
41+
left: 0 - sides.left,
4242
rotation: 'rotate(45)',
4343
}
4444
}

app/components/selection/handles.element.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
width: var(--width);
1111
height: var(--height);
1212
display: grid;
13+
grid-template-rows: 1fr;
1314
isolation: isolate;
1415
}
1516

0 commit comments

Comments
 (0)