Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoeydelarago <joeydelarago@gmail.com>2022-08-23 17:17:36 +0300
committerjoeydelarago <joeydelarago@gmail.com>2022-08-23 17:17:36 +0300
commitdb0b6687392a0d88bbdae37aa5a7f035bffba3a8 (patch)
tree78f1f15d0b2db9f09c197411152ffb7ffb8fe031
parent90f53bbdc1564cd66f95f7f4a14a15831fd13bcb (diff)
Adjust button size according to width
CURA-9514
-rw-r--r--resources/qml/PrinterSelector/MachineSelector.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/resources/qml/PrinterSelector/MachineSelector.qml b/resources/qml/PrinterSelector/MachineSelector.qml
index 09ca1316be..8c5ed98887 100644
--- a/resources/qml/PrinterSelector/MachineSelector.qml
+++ b/resources/qml/PrinterSelector/MachineSelector.qml
@@ -224,6 +224,9 @@ Cura.ExpandablePopup
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
+ anchors.left: parent.left
+ anchors.right: parent.right
+
padding: UM.Theme.getSize("default_margin").width
spacing: UM.Theme.getSize("default_margin").width
@@ -236,7 +239,7 @@ Cura.ExpandablePopup
// 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: UM.Theme.getSize("machine_selector_widget_content").width / 2 - leftPadding
+ width: buttonRow.width / 2 - leftPadding * 1.5
onClicked:
{
toggleContent()
@@ -253,7 +256,7 @@ Cura.ExpandablePopup
fixedWidthMode: true
// The maximum width of the button is half of the total space, minus the padding of the parent, the right
// padding of the component and half the spacing because of the space between buttons.
- width: UM.Theme.getSize("machine_selector_widget_content").width / 2 - leftPadding
+ width: buttonRow.width / 2 - rightPadding * 1.5
onClicked:
{
toggleContent()