gridster.js
gridster.js copied to clipboard
If window size is smaller than widget size on init, widget becomes smaller.
If you have a widget size of say 100x100 and you make the widget 5x5 (so total dimensions is 500x500) then you shrink your browser down to ~300x300, the autogenerated style sheets cap the width at the size of the window causing the widget to become 300x300 rather than the request 500x500.
Perhaps this was a design decision made early on? I'm not sure why I'd want this to be the way the grid functions..
https://www.dropbox.com/s/c4z2fs6qkl5t649/Gridster%20widget%20init%20size%20issue.mp4?dl=0
I guess it would depend on the config settings of gridster... If you have it configured so that it's in responsive mode, then the window size should probably take precedence, and I remember having an issue with widgets extending past he right window frame in responsive mode, and adding logic to shrink it below the calculated size. I still think that logic is right, but it appears we need to re-calc the size on window change and moves, then it would bounce back to 500x500 when it can.