fill height according except fit mode
This commit is contained in:
parent
ad1b1a979b
commit
2e8093175f
@ -100,12 +100,17 @@ Rectangle {
|
||||
if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_X) {
|
||||
head.Layout.fillWidth = true
|
||||
}
|
||||
|
||||
if (parent.widthSpec == 1) {
|
||||
tail.Layout.fillWidth = false
|
||||
} else {
|
||||
tail.Layout.fillWidth = true
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
id: tail
|
||||
objectName: "tail"
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -101,12 +101,17 @@ Rectangle {
|
||||
if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_Y) {
|
||||
head.Layout.fillHeight = true
|
||||
}
|
||||
|
||||
if (parent.heightSpec == 1) {
|
||||
tail.Layout.fillHeight = false
|
||||
} else {
|
||||
tail.Layout.fillHeight = true
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
id: tail
|
||||
objectName: "tail"
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user