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{
id:scroll_bar_v
onVisualPositionChanged: {
table_view.forceLayout()
}
}
columnWidthProvider: function(column) {
var w = columnSource[column].width
@ -533,6 +530,16 @@ Rectangle {
return []
}
}
onContentYChanged:{
timer_force_layout.restart()
}
Timer{
interval: 50
id:timer_force_layout
onTriggered: {
header_vertical.forceLayout()
}
}
delegate: Rectangle{
id:item_control
readonly property real cellPadding: 8

View File

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