Commit e392e8f0 authored by Prince Gupta's avatar Prince Gupta 💬 Committed by Jean-Baptiste Kempf
Browse files

qml: fix hidden header in tableview

parent d8670a83
......@@ -98,6 +98,10 @@ NavigableFocusScope {
view.positionViewAtIndex(index, mode)
}
function positionViewAtBeginning() {
view.listView.positionViewAtBeginning()
}
Timer {
id: availableRowWidthUpdater
......@@ -158,6 +162,12 @@ NavigableFocusScope {
visible: view.modelCount > 0
z: 3
// with inline header positioning and for `root.header` which changes it's height after loading,
// in such cases after `root.header` completes, the ListView will try to maintain the relative contentY,
// and hide the completed `root.header`, try to show the `root.header` in such cases by manually
// positiing view at beginning
onHeightChanged: if (root.contentY < 0) root.positionViewAtBeginning()
Widgets.ListLabel {
x: contentX - VLCStyle.table_section_width
y: row.y
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment