diff --git a/src/Qt5/imports/FluentUI/Controls/FluTableView.qml b/src/Qt5/imports/FluentUI/Controls/FluTableView.qml index 3c8d40c8..682cd154 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluTableView.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluTableView.qml @@ -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 diff --git a/src/Qt6/imports/FluentUI/Controls/FluTableView.qml b/src/Qt6/imports/FluentUI/Controls/FluTableView.qml index d51855bc..b19e406f 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluTableView.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluTableView.qml @@ -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