fix(StatusBaseInput): fix default padding when leftComponent is loaded
This commit is contained in:
parent
5f012da87f
commit
c6b2a02e0a
|
@ -37,7 +37,7 @@ Item {
|
||||||
property alias placeholderTextColor: placeholder.color
|
property alias placeholderTextColor: placeholder.color
|
||||||
property alias placeholderFont: placeholder.font
|
property alias placeholderFont: placeholder.font
|
||||||
|
|
||||||
property real leftPadding: 16
|
property real leftPadding: leftComponentLoader.item ? 8 : 16
|
||||||
property real rightPadding: 16
|
property real rightPadding: 16
|
||||||
property real topPadding: 12
|
property real topPadding: 12
|
||||||
property real bottomPadding: 12
|
property real bottomPadding: 12
|
||||||
|
@ -127,6 +127,7 @@ Item {
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
id: leftComponentLoader
|
||||||
sourceComponent: {
|
sourceComponent: {
|
||||||
if (root.leftComponent) return root.leftComponent
|
if (root.leftComponent) return root.leftComponent
|
||||||
if (!root.leftIcon) return undefined
|
if (!root.leftIcon) return undefined
|
||||||
|
|
Loading…
Reference in New Issue