Skip to content

Commit

Permalink
fixes margin and padding measurement labels
Browse files Browse the repository at this point in the history
  • Loading branch information
argyleink committed Mar 26, 2024
1 parent 6bc219c commit fe7705f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/selection/box-model.element.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class BoxModel extends HTMLElement {
}
if (sides.left) {
this.createMeasurement({
x: bounds.width,
x: sides.left * -1,
y: (window.scrollY * -1) + (bounds.height / 2) - offset,
d: sides.left,
q: 'left',
Expand Down Expand Up @@ -164,7 +164,7 @@ export class BoxModel extends HTMLElement {
}
if (sides.left) {
this.createMeasurement({
x: bounds.width - sides.left,
x: 0,
y: (window.scrollY * -1) + (bounds.height / 2) - offset,
d: sides.left,
q: 'left',
Expand Down

0 comments on commit fe7705f

Please sign in to comment.