This commit is contained in:
朱子楚\zhuzi 2023-10-17 22:38:04 +08:00
parent 4ec772fff2
commit cb5b9d8541
2 changed files with 20 additions and 6 deletions

View File

@ -196,9 +196,6 @@ Rectangle {
} }
ScrollBar.vertical: FluScrollBar{ ScrollBar.vertical: FluScrollBar{
id:scroll_bar_v id:scroll_bar_v
onVisualPositionChanged: {
table_view.forceLayout()
}
} }
columnWidthProvider: function(column) { columnWidthProvider: function(column) {
var w = columnSource[column].width var w = columnSource[column].width
@ -533,6 +530,16 @@ Rectangle {
return [] return []
} }
} }
onContentYChanged:{
timer_force_layout.restart()
}
Timer{
interval: 50
id:timer_force_layout
onTriggered: {
header_vertical.forceLayout()
}
}
delegate: Rectangle{ delegate: Rectangle{
id:item_control id:item_control
readonly property real cellPadding: 8 readonly property real cellPadding: 8

View File

@ -197,9 +197,6 @@ Rectangle {
} }
ScrollBar.vertical: FluScrollBar{ ScrollBar.vertical: FluScrollBar{
id:scroll_bar_v id:scroll_bar_v
onVisualPositionChanged: {
table_view.forceLayout()
}
} }
columnWidthProvider: function(column) { columnWidthProvider: function(column) {
var w = columnSource[column].width var w = columnSource[column].width
@ -534,6 +531,16 @@ Rectangle {
return [] return []
} }
} }
onContentYChanged:{
timer_force_layout.restart()
}
Timer{
interval: 50
id:timer_force_layout
onTriggered: {
header_vertical.forceLayout()
}
}
delegate: Rectangle{ delegate: Rectangle{
id:item_control id:item_control
readonly property real cellPadding: 8 readonly property real cellPadding: 8