From c6b2a02e0a0760db870364411028724e4a984aae Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Mon, 28 Mar 2022 14:21:57 +0200 Subject: [PATCH] fix(StatusBaseInput): fix default padding when leftComponent is loaded --- ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml b/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml index 4e0d3c4b93..1dced1c6bb 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml @@ -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