From d9ca4579f198be4eb30974e4abcb880851ff22c9 Mon Sep 17 00:00:00 2001 From: zflyluo Date: Sat, 11 Apr 2026 20:18:59 +0800 Subject: [PATCH] fix(table): vertical scrolling with fixed columns and height set (fixes #736) --- tdesign-component/lib/src/components/table/t_table.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tdesign-component/lib/src/components/table/t_table.dart b/tdesign-component/lib/src/components/table/t_table.dart index 0e0581336..a86b9ff20 100644 --- a/tdesign-component/lib/src/components/table/t_table.dart +++ b/tdesign-component/lib/src/components/table/t_table.dart @@ -670,11 +670,10 @@ class TTableState extends State { } if (widget.height != null) { - // 有height时,整个数据区域做纵向滚动 dataBody = SingleChildScrollView( controller: _scrollController, physics: const BouncingScrollPhysics(), - child: dataRow, + child: IntrinsicHeight(child: dataRow), ); } else { dataBody = dataRow;