diff --git a/packages/frontend-core/src/components/grid/stores/index.ts b/packages/frontend-core/src/components/grid/stores/index.ts index 5ddf663002..54ac274d92 100644 --- a/packages/frontend-core/src/components/grid/stores/index.ts +++ b/packages/frontend-core/src/components/grid/stores/index.ts @@ -36,6 +36,7 @@ const DependencyOrderedStores = [ NonPlus, Datasource, Columns, + Config as any, Scroll, Validation, Rows, @@ -47,7 +48,6 @@ const DependencyOrderedStores = [ Users, Menu, Pagination, - Config as any, Clipboard, Notifications, Cache, diff --git a/packages/frontend-core/src/components/grid/stores/scroll.ts b/packages/frontend-core/src/components/grid/stores/scroll.ts index 4f53c2c528..629057540d 100644 --- a/packages/frontend-core/src/components/grid/stores/scroll.ts +++ b/packages/frontend-core/src/components/grid/stores/scroll.ts @@ -58,7 +58,7 @@ export const deriveStores = (context: StoreContext) => { width, height, buttonColumnWidth, - props, + config, } = context // Memoize store primitives @@ -98,13 +98,13 @@ export const deriveStores = (context: StoreContext) => { // Derive vertical limits const contentHeight = derived( - [rows, rowHeight, showHScrollbar, props], - ([$rows, $rowHeight, $showHScrollbar, $props]) => { + [rows, rowHeight, showHScrollbar, config], + ([$rows, $rowHeight, $showHScrollbar, $config]) => { let height = $rows.length * $rowHeight + VPadding if ($showHScrollbar) { height += ScrollBarSize * 3 } - if ($props.canAddRows) { + if ($config.canAddRows) { height += $rowHeight } return height