mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-24 07:08:07 +00:00
fix(dialog): use dynamic height for dialog description
This commit is contained in:
parent
dcbf6916d7
commit
5b89a7ecb8
2 changed files with 4 additions and 3 deletions
|
|
@ -9,7 +9,9 @@ import 'qrc:/ui/style/components'
|
|||
Item {
|
||||
property alias text: description.text
|
||||
|
||||
height: text ? DialogStyle.description.height : DialogStyle.description.minHeight
|
||||
height: (!text && DialogStyle.description.verticalMargin) || undefined
|
||||
implicitHeight: (text && (description.implicitHeight + DialogStyle.description.verticalMargin)) ||
|
||||
0
|
||||
|
||||
Text {
|
||||
id: description
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ QtObject {
|
|||
|
||||
property QtObject description: QtObject {
|
||||
property int fontSize: 12
|
||||
property int height: 90 // Height with text.
|
||||
property int minHeight: 25 // Height without text.
|
||||
property int verticalMargin: 25
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue