javascript - How to add an element to the jquery.shapeshift grid -


i want append , element grid created jquery.shapeshift. documentation says trigger rearrange once element added. i've tried nothing. doing wrong? see example http://jsfiddle.net/lnysc/1307/

$(".container").shapeshift({     mincolumns: 3 });   $("a").click(function(){      $(".container").append("<div></div>");     $(".container").trigger("ss-event-arrange");  }); 

many thanks

the div added way not recognized container child yet should tell container div added child treated so. know there should way it, try reshapeing container calling $(".container").shapeshift() again, example:

$(".container").shapeshift({     mincolumns: 3 });   $("a").click(function(){      $(".container").append("<div></div>");      $(".container").shapeshift(); }); 

here example: http://jsfiddle.net/lnysc/1501/


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -