Skip to content

Commit

Permalink
fix: decrease ColumnPicker/GridMenu min-height to 150px
Browse files Browse the repository at this point in the history
- for a grid with only 2 columns, the min-height of these controls was way too small, let's make it as 150px
  • Loading branch information
ghiscoding committed Oct 26, 2024
1 parent ceaa2d8 commit 5041c95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/common/src/extensions/slickColumnPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class SlickColumnPicker {
hideForceFitButton: false,
hideSyncResizeButton: false,
forceFitTitle: 'Force fit columns',
minHeight: 200,
minHeight: 150,
syncResizeTitle: 'Synchronous resize',
headerColumnValueExtractor: (columnDef: Column) => {
return getHtmlStringOutput(columnDef.columnPickerLabel || columnDef.name || '', 'innerHTML');
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/extensions/slickGridMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class SlickGridMenu extends MenuBaseClass<GridMenu> {
forceFitTitle: 'Force fit columns',
marginBottom: 15,
menuWidth: 18,
minHeight: 250,
minHeight: 150,
contentMinWidth: 0,
resizeOnShowHeaderRow: false,
syncResizeTitle: 'Synchronous resize',
Expand Down

0 comments on commit 5041c95

Please sign in to comment.