mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 02:26:10 +08:00
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:
parent
a3d04bc752
commit
2f75e299f5
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user