This commit is contained in:
Ryan Oldenburg 2021-05-07 17:48:39 -05:00
parent 62c7fcd7ed
commit 85bd786dd0
3 changed files with 2 additions and 2 deletions

View file

@ -235,12 +235,12 @@ proc typeset*(
of haLeft:
discard
of haCenter:
xAdjustment = round((bounds.x - furthestX) / 2)
xAdjustment = (bounds.x - furthestX) / 2
of haRight:
xAdjustment = bounds.x - furthestX
if xAdjustment != 0:
for i in 0 ..< result.positions.len:
for i in start .. stop:
result.positions[i].x += xAdjustment
result.selectionRects[i].x += xAdjustment

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 47 KiB