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.
This commit is contained in:
Moulberry 2025-11-06 22:01:55 +08:00 committed by GitHub
parent faee91eda4
commit 7f8eb28cfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(