mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix maximumWidth properties on ActionButtons
Turns out this wasn't really functional. We didn't use it. Now we use it for the MessageStack. Contributes to issue CURA-8682.
This commit is contained in:
parent
b5e7a60a8a
commit
348abad6eb
1 changed files with 2 additions and 2 deletions
|
@ -148,8 +148,8 @@ Button
|
||||||
// Using parent.width is fine in fixedWidthMode.
|
// Using parent.width is fine in fixedWidthMode.
|
||||||
target: buttonText
|
target: buttonText
|
||||||
property: "width"
|
property: "width"
|
||||||
value: button.fixedWidthMode ? button.width - button.leftPadding - button.rightPadding
|
value: button.fixedWidthMode ? (button.width - button.leftPadding - button.rightPadding)
|
||||||
: ((maximumWidth != 0 && button.contentWidth > maximumWidth) ? maximumWidth : undefined)
|
: ((button.maximumWidth != 0 && button.implicitContentWidth > button.maximumWidth) ? (button.maximumWidth - (button.width - button.implicitContentWidth) * 2) : undefined)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue