Set the width in the parent item

Fixes review comment https://github.com/Ultimaker/Cura/pull/10491#discussion_r713127038.

CURA-8421
This commit is contained in:
Konstantinos Karmas 2021-09-21 17:31:37 +02:00
parent a3d04bc752
commit 2f75e299f5

View file

@ -11,17 +11,14 @@ import Cura 1.1 as Cura
Item Item
{ {
id: applicationSwitcherWidget id: applicationSwitcherWidget
width: applicationSwitcherButton.width width: Math.round(0.5 * UM.Theme.getSize("main_window_header").height)
height: width height: width
Button Button
{ {
id: applicationSwitcherButton id: applicationSwitcherButton
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
width: Math.round(0.5 * UM.Theme.getSize("main_window_header").height) anchors.fill: parent
height: width
background: Item background: Item
{ {