Refactor EventContent
Use proper layouts and get rid of multiple annoyances/bugs like text-wrapping randomly happening in the middle of words, background rectangles being too large, a certain binding loop, etc
This commit is contained in:
@@ -9,7 +9,19 @@ Repeater {
|
||||
let total = 0
|
||||
|
||||
for (let i = 0; i < repeater.count; i++) {
|
||||
total += repeater.itemAt(i).implicitWidth
|
||||
let item = repeater.itemAt(i)
|
||||
if (item && item.width) total += item.width
|
||||
}
|
||||
|
||||
return total
|
||||
}
|
||||
|
||||
readonly property int childrenWidth: {
|
||||
let total = 0
|
||||
|
||||
for (let i = 0; i < repeater.count; i++) {
|
||||
let item = repeater.itemAt(i)
|
||||
if (item && item.width) total += item.width
|
||||
}
|
||||
|
||||
return total
|
||||
|
Reference in New Issue
Block a user