-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Gridster responsive? #475
Comments
@BramCrins have you found a way round this am also looking into making gridster responsive as well |
@BramCrins And @kenju254 Here is my solution for making gridster responsive.... /*Just add this css for responsive gridster */ /Work around for devices less than 768px/ And to make it more flexible in mobile devices and to make proper colomn count this little snippet may help you further.
|
Thanks @iamusman. I will give it a try. If i manage it i will post a fiddle. |
Check this issue here, @rebugger added a resize_widget_dimensions() where you can change the initialized width and height that you specified in I used it when the screen resize but you could use it when orientation is changed function gridsterResize(){
var gridster = $(".gridster ul").gridster().data('gridster');
gridster.resize_widget_dimensions({
widget_base_dimensions: [NEW WIDTH, NEW HEIGHT],
}); |
@KoltonG will this work with bootstrap 3 responsiveness? When resizing webpage at some point layout is changed. I need to update gridster every time I change website size. I'll be grateful for guidance. |
@tjagusz This will work with bootstrap 3 responsiveness since this is mainly javascript implementation where bootstrap is using media queries for the responsiveness aspect. Simply check the screen size with JS and when you hit a certain condition you can resize gridster appropriately. To change the size on resize, just check the window resize event and once that is fired, call the above method and chose your widget_base_dimension. I personally did not chose a static value for the widget_base_dimension since the size of the screen can be so dynamic, so I chose it relative to the size of its container after the resize even is fired. Let me know if you need more explanation but the outcome can be easily personalized with this resize_widget_dimensions(). |
An example would be great. Thanks!!! |
@iamusman I need help to make it responsive. Your css works perfect, but where should that script be implemented, all my items are getting overlapped. SASS code with some effect
|
Is it possible to make gridster responsive? I love your product but would like to use it on a mobile website. With the change of orrientation i would like the tiles to automatically reorder.
Is this possible?
Regards,
Bram
The text was updated successfully, but these errors were encountered: