-
-
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
Set StaticGrid behaviour 0.3 #743
Comments
I can confirm that option staticGrid does not take any effect. Tested on very basic example:
|
Workaround for now is to call setStatic method right after init.
|
This will not work if you have nested grids. Inner grids are not static. |
The work around will also work on inner grids. Remember to call the setStatic(true); function for each grid group.
The first one sets the main grid. The second one locks the inner grid which is identified within the HTML code with class name "grid-inner". |
Holy smokes. I don't know at what point that broke, but it's definitely broken. Thanks for letting us know, @kool-kat . I'm glad there's a workaround, but this issue needs to be fixed. It'll be resolved in the dev branch shortly and will be part of the next release. |
@kool-kat Fixed in dev branch now. |
@radiolips is this fixed on production? Cause I have the most recent version and it still does not work. |
Hey, @luissmg . The release branch has yet to be updated, despite how long ago this was fixed. So, no, it's not yet fixed in production, but you can use the develop branch to remedy the problem for now. |
@radiolips Thanks for the response. I will keep an eye on the production branch and test the dev to see if it is ok. Do you have a release scheduled? EDIT: So, I tested the dev version and it does work. |
Hi,
I have done a trawl through issues past and present and see a few tickets referring to StaticGrid option not behaving as expected.
I have created a 2 piece grid and initialised it as staticGrid=true
I know it is seeing this parameter as it is applying the CSS class grid-stack-static to the wrapper grid DIV.
BUT each piece in the grid is still moving and resizing. I know I can manually assign a no-move and no-resize data class but this defeats the purpose of the staticGrid flag.
Am I missing something? I am not programatically adding pieces, these were given a size and position at startup in HTML code; so I expected the static lock to work.
HTML
INIT
The text was updated successfully, but these errors were encountered: