mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-04 13:55:13 +08:00
Add round to minContentWidth
This prevents text from getting a weird width CURA-5785
This commit is contained in:
parent
320efa443e
commit
5972bfaf03
@ -21,7 +21,7 @@ Item
|
|||||||
|
|
||||||
// These properties can be used in combination with layouts.
|
// These properties can be used in combination with layouts.
|
||||||
readonly property real contentWidth: icon.width + margin + label.contentWidth
|
readonly property real contentWidth: icon.width + margin + label.contentWidth
|
||||||
readonly property real minContentWidth: icon.width + margin + 0.5 * label.contentWidth
|
readonly property real minContentWidth: Math.round(icon.width + margin + 0.5 * label.contentWidth)
|
||||||
|
|
||||||
Layout.minimumWidth: minContentWidth
|
Layout.minimumWidth: minContentWidth
|
||||||
Layout.preferredWidth: contentWidth
|
Layout.preferredWidth: contentWidth
|
||||||
|
Loading…
x
Reference in New Issue
Block a user