<div dir="ltr">Hi Alan,<div><br></div><div><br></div><div>Wouldn't it just be an option to add a !important min-height:0; css line to your module template ?</div><div>This might also be a bit hacky but i think it's a way better option that resetting the min-height everytime the data is retrieved.</div><div><br></div><div><br></div><div>Hope this might have helped.</div><div><br></div><div>Kind Regards,</div><div><br></div><div>Lennart</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-08 16:32 GMT+01:00 Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In layouts/vlayout/Vtiger/header.js and in app.js are functions which calculate and update the min-height attributes of the bodyContents, mainContainer and contentsDiv divs.<br>
<br>
In a module I am writing, when I use Ajax to redraw the contents within the mainContainer div, one or more of these functions are recalculating the min-height but it is incrementing each time the dom is written to with the new data irrespective of whether the data being written is heigher than the previous contents or not - so consequently the page gets longer and longer with every write.<br>
<br>
I am using jQuery('.mycontainerclass').parent().html(data); to redraw the contents. The parent() of mycontainerclass is the mainContainer div.<br>
<br>
Any suggestions as to how to stop the height from growing? (Other than setting them all to 0 and getting it recalculated afterwards which seems bit hacky...<br>
<br>
jQuery('.bodyContents').css('min-height', 0);<br>
jQuery('.mainContainer').css('min-height', 0);<br>
jQuery('.contentsDiv').css('min-height', 0);<br>
app.setContentsHeight();<br>
<br>
<br>
Thanks<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>