mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
Round width to prevent drawing text on non-integer offsets
Contribution from @fieldOfView CURA-9424
This commit is contained in:
parent
8ee5bc2bd4
commit
79a7b1e064
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// 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.
|
// padding of the component and half the spacing because of the space between buttons.
|
||||||
fixedWidthMode: true
|
fixedWidthMode: true
|
||||||
width: parent.width / 2 - leftPadding * 1.5
|
width: Math.round(parent.width / 2 - leftPadding * 1.5)
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
toggleContent()
|
toggleContent()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue