javascript - Update the layout on change in the height of a div -


I have a page where several divisions are arranged one by one and they are under a masonry effect.

Masonry is doing good work but only one problem is that divs have a place to make a comment and whenever we increase the height of a commented div, but masary dosent divs rearranges.

reloading via div ajax

  & lt; Script & gt; $ (Document) .ready (function () {var $ container = $ ('# REATINIDEpoASttt78'); $ container.images loaded (function () ($ container.masonry ({item selector: '.realFLOAtingPOSTSA', column width:   

This is for masonry and now div to reload

 < Code> function formsmubitionbyajax (obj) {var id = $ (obj) .attr ("id"); current form = $ (obje); $ ('# COMMlo' + id) .show (); $ .ajax ( {Type: 'post', url: 'home_formhandler1.php', data: current format. Serialize (), success: function () {$ ("# mainDIV" + id) .load ('home.php # main id' Id);}}); false statement   

My html looks like

  

,

  var container = document.query selector ('# RETINIDAPSetty 78'); Var msnry = new masonry (container, {columnWidth: 350}); $ ('# REATINIDEpoASttt78') Resize ('resize', function () {// use msnry.layout ();}};    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -