Fix warnings caused by combobox

Parent wasn't always set, which caused ocasional warnings
This commit is contained in:
Jaime van Kessel 2022-03-10 11:34:11 +01:00
parent 01ecc799fa
commit 84a0c732c1

View File

@ -57,9 +57,7 @@ ComboBox
contentItem: UM.Label contentItem: UM.Label
{ {
id: contentLabel id: contentLabel
anchors.left: parent.left leftPadding: UM.Theme.getSize("setting_unit_margin").width + UM.Theme.getSize("default_margin").width
anchors.leftMargin: UM.Theme.getSize("setting_unit_margin").width
anchors.verticalCenter: parent.verticalCenter
anchors.right: downArrow.left anchors.right: downArrow.left
wrapMode: Text.NoWrap wrapMode: Text.NoWrap
text: text: