mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 15:57:52 -06:00
Use anchors instead of setting the width
Fixes review comment https://github.com/Ultimaker/Cura/pull/10491#discussion_r713119985. CURA-8421
This commit is contained in:
parent
2f75e299f5
commit
c73f815b69
1 changed files with 5 additions and 3 deletions
|
@ -35,7 +35,9 @@ Button
|
||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
id: applicationButtonContent
|
id: applicationButtonContent
|
||||||
anchors.centerIn: parent
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
UM.RecolorImage
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
|
@ -87,9 +89,9 @@ Button
|
||||||
{
|
{
|
||||||
id: applicationDisplayName
|
id: applicationDisplayName
|
||||||
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
width: base.width - UM.Theme.getSize("default_margin").width
|
|
||||||
height: base.height - applicationIcon.height - 2 * UM.Theme.getSize("default_margin").width // Account for the top and bottom margins
|
height: base.height - applicationIcon.height - 2 * UM.Theme.getSize("default_margin").width // Account for the top and bottom margins
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue