fix(StatusBaseInput): fix default padding when leftComponent is loaded

This commit is contained in:
Patryk Osmaczko 2022-03-28 14:21:57 +02:00 committed by Michał Cieślak
parent 5f012da87f
commit c6b2a02e0a
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@ Item {
property alias placeholderTextColor: placeholder.color
property alias placeholderFont: placeholder.font
property real leftPadding: 16
property real leftPadding: leftComponentLoader.item ? 8 : 16
property real rightPadding: 16
property real topPadding: 12
property real bottomPadding: 12
@ -127,6 +127,7 @@ Item {
clip: true
Loader {
id: leftComponentLoader
sourceComponent: {
if (root.leftComponent) return root.leftComponent
if (!root.leftIcon) return undefined