From 79a7b1e0649b71de2dd5d41b97ad9ec7ce42541e Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Wed, 9 Nov 2022 16:56:07 +0100 Subject: [PATCH] Round width to prevent drawing text on non-integer offsets Contribution from @fieldOfView CURA-9424 --- plugins/PrepareStage/PrepareMenu.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/PrepareStage/PrepareMenu.qml b/plugins/PrepareStage/PrepareMenu.qml index 59508dd102..3f24d619ac 100644 --- a/plugins/PrepareStage/PrepareMenu.qml +++ b/plugins/PrepareStage/PrepareMenu.qml @@ -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()