From 7f8eb28cfa0e5ee44fce64a489960d591688b4e6 Mon Sep 17 00:00:00 2001 From: Moulberry Date: Thu, 6 Nov 2025 22:01:55 +0800 Subject: [PATCH] table: Fix missing border on first frame (#1533) After all the adjustments, the original issue that https://github.com/longbridge/gpui-component/pull/1505 was trying to fix reappeared. The fix is simple: don't consider the table to be filled if the height is zero. --- crates/ui/src/table/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui/src/table/mod.rs b/crates/ui/src/table/mod.rs index 5546983a..5e27e179 100644 --- a/crates/ui/src/table/mod.rs +++ b/crates/ui/src/table/mod.rs @@ -1310,7 +1310,7 @@ where rows_count }; let right_clicked_row = self.right_clicked_row; - let is_filled = total_height <= actual_height; + let is_filled = total_height > Pixels::ZERO && total_height <= actual_height; let loading_view = if loading { Some(