mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:29:04 +08:00
Workaround for windows not giving dialogs the correct width.
CURA-8921
This commit is contained in:
parent
c6326eff64
commit
8a182b1f3f
@ -24,13 +24,9 @@ UM.Dialog
|
|||||||
// In this case we would like to let the content of the dialog determine the size of the dialog
|
// In this case we would like to let the content of the dialog determine the size of the dialog
|
||||||
// however with the current implementation of the dialog this is not possible, so instead we calculate
|
// however with the current implementation of the dialog this is not possible, so instead we calculate
|
||||||
// the size of the dialog ourselves.
|
// the size of the dialog ourselves.
|
||||||
minimumWidth: content.width + 4 * margin
|
// Ugly workaround for windows having overlapping elements due to incorrect dialog width
|
||||||
minimumHeight:
|
minimumWidth: content.width + (Qt.platform.os == "windows" ? 4 * margin : 2 * margin)
|
||||||
content.height // content height
|
minimumHeight: content.height + buttonRow.height + (Qt.platform.os == "windows" ? 5 * margin : 3 * margin)
|
||||||
+ buttonRow.height // button row height
|
|
||||||
+ 5 * margin // top and bottom margin and margin between buttons and content
|
|
||||||
width: minimumWidth
|
|
||||||
height: minimumHeight
|
|
||||||
|
|
||||||
property alias color: colorInput.text
|
property alias color: colorInput.text
|
||||||
property var swatchColors: [
|
property var swatchColors: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user