update fill condition
This commit is contained in:
parent
2e8093175f
commit
5c5d6165c2
@ -97,13 +97,14 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_X) {
|
||||
head.Layout.fillWidth = true
|
||||
}
|
||||
|
||||
if (parent.widthSpec == 1) {
|
||||
tail.Layout.fillWidth = false
|
||||
} else {
|
||||
if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_X) {
|
||||
head.Layout.fillWidth = true
|
||||
} else {
|
||||
head.Layout.fillWidth = false
|
||||
}
|
||||
tail.Layout.fillWidth = true
|
||||
}
|
||||
}
|
||||
|
@ -98,13 +98,14 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_Y) {
|
||||
head.Layout.fillHeight = true
|
||||
}
|
||||
|
||||
if (parent.heightSpec == 1) {
|
||||
tail.Layout.fillHeight = false
|
||||
} else {
|
||||
if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_Y) {
|
||||
head.Layout.fillHeight = true
|
||||
} else {
|
||||
head.Layout.fillHeight = false
|
||||
}
|
||||
tail.Layout.fillHeight = true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user