From 73cc5bccc845d429fae328ce2fb11b15354b4dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sat, 1 Jul 2023 11:37:08 +0800 Subject: [PATCH] update --- src/imports/FluentUI/Controls/FluTableView.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/imports/FluentUI/Controls/FluTableView.qml b/src/imports/FluentUI/Controls/FluTableView.qml index 509d2f50..26e36639 100644 --- a/src/imports/FluentUI/Controls/FluTableView.qml +++ b/src/imports/FluentUI/Controls/FluTableView.qml @@ -175,6 +175,9 @@ Rectangle { return w } rowHeightProvider: function(row) { + if(row>=table_model.rowCount){ + return 0 + } var h = table_model.getRow(row).height if(row === item_loader.row){ item_loader.height = h @@ -186,7 +189,7 @@ Rectangle { item_loader.y = table_view.contentY + cellPosition.y } } - return h + return 48 } model: table_model clip: true