Round width to prevent drawing text on non-integer offsets

Contribution from @fieldOfView

CURA-9424
This commit is contained in:
c.lamboo 2022-11-09 16:56:07 +01:00
parent 8ee5bc2bd4
commit 79a7b1e064

View file

@ -75,7 +75,7 @@ Item
// The maximum width of the button is half of the total space, minus the padding of the parent, the left
// padding of the component and half the spacing because of the space between buttons.
fixedWidthMode: true
width: parent.width / 2 - leftPadding * 1.5
width: Math.round(parent.width / 2 - leftPadding * 1.5)
onClicked:
{
toggleContent()