File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -620,6 +620,8 @@ export class RegularTableViewModel extends RegularTableViewModelBase {
620620 while ( dcidx < num_visible_columns ) {
621621 // Fetch missing columns if needed
622622 if ( ! view_response . data [ dcidx ] ) {
623+ // Style the partially-renderd rows so there is no FOUT
624+ yield undefined ;
623625 const fetch_result = await this . _fetchMissingColumns (
624626 viewport ,
625627 view ,
@@ -680,12 +682,14 @@ export class RegularTableViewModel extends RegularTableViewModelBase {
680682 let col_width =
681683 this . _column_sizes . indices [ _virtual_x + Math . floor ( x0 ) ] ||
682684 cont_head ?. th ?. offsetWidth ;
685+
683686 if ( ! col_width ) {
684687 col_width = 0 ;
685688 for ( const { td } of cont_body . tds ) {
686689 col_width += td ?. offsetWidth || 0 ;
687690 }
688691 }
692+
689693 view_state . viewport_width += col_width ;
690694 view_state . row_height =
691695 view_state . row_height || cont_body . row_height ;
You can’t perform that action at this time.
0 commit comments