Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gridMenu): Grid Menu wrong location changing from regular to frozen #513

Merged
merged 2 commits into from
Jun 12, 2020
Merged

fix(gridMenu): Grid Menu wrong location changing from regular to frozen #513

merged 2 commits into from
Jun 12, 2020

Conversation

ghiscoding
Copy link
Collaborator

@ghiscoding ghiscoding commented Jun 11, 2020

  • add a new SlickGrid event onSetOptions to know when users dynamically changes the grid from regular to frozen (or vice versa)
  • the issue was that when changing a grid dynamically from regular to a frozen grid, the Grid Menu is positioned at the wrong location (shows up on left container instead of right container), the reason is because a regular grid uses the Left Grid Pane, while a frozen grid uses both left/right Grid Pane and its menu should be on the right Grid Pane (instead of left for a regular grid).

TODO

  • manually tested with SlickGrid example (modified the example-frozen-columns-and-column-group.html to test it)
  • manually tested with Angular-Slickgrid examples
  • add some Cypress E2E tests
    • now 100 tests in total on 9 different examples, sweet :)

BEFORE FIX

you can see the grid menu showing up on the left container, on its top right, but it really shouldn't be there

54xlqM22Ba


AFTER FIX

grid menu is only on top right corner of the grid, where it should always be

sx8EQyJUMn

- add a new SlickGrid event `onSetOptions` to know when users dynamically changes the grid from regular to frozen (or vice versa)
- the issue was that when changing a grid dynamically from regular to a frozen grid, the Grid Menu is positioned at the wrong location (shows up on left container instead of right container), the reason is because a regular grid uses the Left Grid Pane, while a frozen grid uses both left/right Grid Pane and its menu should be on the right Grid Pane (instead of left for a regular grid).
@ghiscoding ghiscoding requested a review from 6pac June 11, 2020 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants