fixes for empty view
This commit is contained in:
parent
2204a7b785
commit
6ac3f86951
|
@ -178,6 +178,11 @@ import "../../../../imports"
|
||||||
// return totalHeight + Style.current.padding
|
// return totalHeight + Style.current.padding
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
Item {
|
||||||
|
anchors.top: suggestionsText.bottom
|
||||||
|
anchors.topMargin: Style.current.smallPadding
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
id: sectionRepeater
|
id: sectionRepeater
|
||||||
anchors.top: suggestionsText.bottom
|
anchors.top: suggestionsText.bottom
|
||||||
|
@ -185,21 +190,21 @@ import "../../../../imports"
|
||||||
// id: sview
|
// id: sview
|
||||||
model: ChannelJSON.categories
|
model: ChannelJSON.categories
|
||||||
Item {
|
Item {
|
||||||
anchors.top: index === 0 ? suggestionsText.bottom : parent.children[index - 1].bottom
|
anchors.top: index === 0 ? parent.top : parent.children[index - 1].bottom
|
||||||
anchors.topMargin: index === 0 ? 0 : Style.current.padding
|
anchors.topMargin: index === 0 ? 0 : Style.current.padding
|
||||||
width: parent.width - Style.current.padding
|
width: parent.width - Style.current.padding
|
||||||
// height: {
|
|
||||||
// return childrenRect.height
|
|
||||||
// }
|
|
||||||
|
|
||||||
height: {
|
height: {
|
||||||
var totalHeight = 0
|
return childrenRect.height
|
||||||
for (let i = 0; i < channelRepeater.count; i++) {
|
|
||||||
totalHeight += channelRepeater.itemAt(i).height + Style.current.padding
|
|
||||||
}
|
|
||||||
return totalHeight
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// height: {
|
||||||
|
// var totalHeight = 0
|
||||||
|
// for (let i = 0; i < channelRepeater.count; i++) {
|
||||||
|
// totalHeight += channelRepeater.itemAt(i).height + Style.current.padding
|
||||||
|
// }
|
||||||
|
// return totalHeight
|
||||||
|
// }
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: sectionTitle
|
id: sectionTitle
|
||||||
text: modelData.name
|
text: modelData.name
|
||||||
|
@ -224,7 +229,7 @@ import "../../../../imports"
|
||||||
|
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
|
}
|
||||||
// Flow {
|
// Flow {
|
||||||
// id: channelFlow
|
// id: channelFlow
|
||||||
// Layout.fillHeight: false
|
// Layout.fillHeight: false
|
||||||
|
|
Loading…
Reference in New Issue