-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
height too small with cellHeight:auto
loading in 1 column
#1600
Comments
cellHeight:auto
default when loading in 1 column mode size
yeah, there is an easy workaround to set not sure what the right behavior is, other than maybe have a minimum height if we load into 1 column directly and cellHeight is set to auto. Either case the user has complete control of the Comments ? |
cellHeight:auto
default when loading in 1 column mode sizecellHeight:auto
default when loading in 1 column
cellHeight:auto
default when loading in 1 columncellHeight:auto
loading in 1 column
- big re-write on how `cellHeight()` works. you can now call it at any time (not just grid init options) including switching to 'auto' or other modes on the fly. - fix `cellHeight:auto` now keeps cell square as window resizes (regressing from 2.x TS conversion). `Utils.throttle()` works better too (guaranteed to be called last event) - new `cellHeight:initial` which makes the cell squares initially, but doesn't change as windows resizes (better performance) - new grid option `cellHeightThrottle` (100ms) to control throttle of auto sizing triggers - fix gridstack#1600 - height too small with `cellHeight:auto` loading in 1 column. Now detect we load at 1 column and size accordingly (default 'auto' could make big 700x700 cells, so explicit px might still be wanted)
- fix gridstack#1600 - big re-write on how `cellHeight()` works. you can now call it at any time (not just grid init options) including switching to 'auto' or other modes on the fly. - fix `cellHeight:auto` now keeps cell square as window resizes (regressing from 2.x TS conversion). `Utils.throttle()` works better too (guaranteed to be called last event) - new `cellHeight:initial` which makes the cell squares initially, but doesn't change as windows resizes (better performance) - new grid option `cellHeightThrottle` (100ms) to control throttle of auto sizing triggers - height too small with `cellHeight:auto` loading in 1 column. Now detect we load at 1 column and size accordingly (default 'auto' could make big 700x700 cells, so explicit px might still be wanted) - added demo/cell-height.html
Thank you @adumesny !!! |
When will you deploy new version? |
couple more fixes before I do... likely this wkd. |
Thanks man! |
Subject of the issue
Nodes heights shrink in one-coloumn-mode.
Your environment
Steps to reproduce
https://jsfiddle.net/aymanmetwallybu/af5vy16w/3/
Also, the example on the home page has this issue. (See screenshots below)
jsfiddle sample:
Homepage demo:
Expected behavior
Nodes should maintain their heights in OneColumnMode (i.e. Node height should be the same in both modes).
Actual behavior
Nodes heights shrink. This issue was not present in earlier versions (for example 1.1.0).
The text was updated successfully, but these errors were encountered: