virtua 0.52.1 → 0.52.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,10 +84,26 @@
84
84
 
85
85
  // The sizes read from the items are tracked, so the items mutated in place are followed.
86
86
  $effect.pre(() => {
87
- updateGridAxis(rowStore, rowLayout, rows, rowHeight, true);
87
+ updateGridAxis(
88
+ rowStore,
89
+ rowLayout,
90
+ rows,
91
+ rowHeight,
92
+ headerRows,
93
+ footerRows,
94
+ true,
95
+ );
88
96
  });
89
97
  $effect.pre(() => {
90
- updateGridAxis(colStore, colLayout, cols, colWidth, true);
98
+ updateGridAxis(
99
+ colStore,
100
+ colLayout,
101
+ cols,
102
+ colWidth,
103
+ headerCols,
104
+ footerCols,
105
+ true,
106
+ );
91
107
  });
92
108
  let rowCount = $derived(stateVersion && rowStore.$getItemsLength());
93
109
  let colCount = $derived(stateVersion && colStore.$getItemsLength());
@@ -98,11 +114,7 @@
98
114
  colLayout,
99
115
  rowStore.$getRange(bufferSize),
100
116
  colStore.$getRange(bufferSize),
101
- headerRows,
102
117
  sectionRows,
103
- footerRows,
104
- headerCols,
105
- footerCols,
106
118
  spans,
107
119
  keepMounted,
108
120
  ariaSort,
@@ -155,11 +167,9 @@
155
167
  driver,
156
168
  rowStore,
157
169
  colStore,
158
- headerRows,
170
+ rowLayout,
171
+ colLayout,
159
172
  sectionRows,
160
- footerRows,
161
- headerCols,
162
- footerCols,
163
173
  opts,
164
174
  );
165
175
  export const scrollTo: VGridHandle["scrollTo"] = ({ vertical, horizontal }) =>