javascript - How to forbid gridster to move widget element down -


all board filled widgets, without margin. , when try move element 1 column(1) another(2) elements @ column 2 go down out of board like:

errormovewidget

i'd forbid placing widget place if there no place widgets in column.

my code:

   gridster = $(".gridster > ul").gridster({            widget_margins: [mysizedetector.blockmargin, mysizedetector.blockmargin],            widget_base_dimensions: [mysizedetector.dx, mysizedetector.dy], /*[width, height]*/           min_cols: mysizedetector.xcount,           min_rows: mysizedetector.ycount,   }).data('gridster'); 

thanks in advance!

i think can restrict go in x-axis beyond container, not in y-axis.

because have min_cols , max_cols restrict in x-axis. have min_rows but not max_rows.

you can refer documentation: http://gridster.net/#documentation


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -