virtual-scroller 1.10.1 → 1.10.2

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.
@@ -161,7 +161,7 @@ export default function createStateHelpers({
161
161
  function getInitialStateFromScratch() {
162
162
  const items = initialItems
163
163
  const state = {
164
- ...getInitialLayoutState.call(this, items, { initialLayout: true }),
164
+ ...getInitialLayoutState.call(this, items, { beforeStart: true }),
165
165
  items,
166
166
  itemStates: new Array(items.length)
167
167
  }
@@ -221,19 +221,19 @@ export default function createStateHelpers({
221
221
  warn('Reset Layout')
222
222
  state = {
223
223
  ...state,
224
- ...getInitialLayoutState.call(this, state.items, { initialLayout: false })
224
+ ...getInitialLayoutState.call(this, state.items, { beforeStart: false })
225
225
  }
226
226
  }
227
227
 
228
228
  return state
229
229
  }
230
230
 
231
- function getInitialLayoutState(items, { initialLayout }) {
231
+ function getInitialLayoutState(items, { beforeStart }) {
232
232
  const itemsCount = items.length
233
233
 
234
234
  const getColumnsCount = () => this.getActualColumnsCount()
235
235
 
236
- const columnsCount = initialLayout
236
+ const columnsCount = beforeStart
237
237
  ? this.layout.getInitialLayoutValueWithFallback(
238
238
  'columnsCount',
239
239
  getColumnsCount,
@@ -249,7 +249,7 @@ export default function createStateHelpers({
249
249
  } = this.layout.getInitialLayoutValues({
250
250
  itemsCount,
251
251
  columnsCount: this.getActualColumnsCount(),
252
- initialLayout
252
+ beforeStart
253
253
  })
254
254
 
255
255
  const itemHeights = new Array(itemsCount)