gridster.js icon indicating copy to clipboard operation
gridster.js copied to clipboard

Responsive grid re-size does not broadcast re-size events

Open dsmorse opened this issue 10 years ago • 3 comments

When then grid is configured in responsive mode, changes in the browser dimensions result the widgets to have their size recalculated, but it does not broadcast the event, so objects in the widgets do not get notified.
Manual re-sizing does broadcast events

dsmorse avatar Jun 19 '15 05:06 dsmorse

@dsmorse actually is there a method to repaint layout? I think that breakpoints should be the correct answear for resposivity support. Take a look at http://kenwheeler.github.io/slick/ and how they handle it.

I think that would be enought to support mobile device – one would just define breakpoinst and correct dimensions.

pySilver avatar Jun 23 '15 20:06 pySilver

yes there is a method which calculates the layout and rebuild the generated stylesheets, this takes care of the internal issues and the widgets get resized correctly.. The problem is for consumers. When they put content in the widgets, they can get events send to them when the user manually resizes the widget, but if the page size triggers resize or an API call triggers the resize then their is nothing broadcast from grister for the client to consume. As a consumer of gridster, they should be able to subscribe to resize events and get them all , not just the events triggered by mouse moves

dsmorse avatar Jun 25 '15 06:06 dsmorse

+1

zeldich avatar Feb 08 '16 11:02 zeldich