Thanks to visit codestin.com
Credit goes to github.com

Skip to content

(feat) column() resizing now supports 'list' | 'compact' modes #2367

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

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

adumesny
Copy link
Member

Description

  • fix Rounding error when scaling the position up using autoPosition #2358 when your grid is display a sorted list of items, we now support reflowing that content during column resize and compact() methods.
  • compact() now takes options which today can be CompactOptions = 'list' | 'compact';
  • column(N) now has new options ColumnOptions = 'list' | 'compact' | 'moveScale', etc...
  • also optimized some code while stepping in debugger.

API is backward compatible and defaults to the same behavior.

TODO: remember bigger width and restore back when going up in columns...

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* fix gridstack#2358
when your grid is display a sorted list of items, we now support reflowing that content during column resize and compact() methods.
* compact() now takes options which today can be
CompactOptions = 'list' | 'compact';
* column(N) now has new options
ColumnOptions = 'list' | 'compact' | 'moveScale', etc...
* also optimized some code while stepping in debugger.

API is backward compatible and defaults  to the same behavior.

TODO: remember bigger width and restore back when going up in columns...
@adumesny adumesny merged commit 5d6ad7e into gridstack:master Jun 13, 2023
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.

Rounding error when scaling the position up using autoPosition
1 participant