简体   繁体   中英

Get height for dynamic update DIV on mootools 1.2.5

<div id="igpopup">
    <div id="igbottom"></div>
    </div>

I use mootools 1.2.5. In "igbottom" add content over ajax. Before add contet div "igpopup" have height = 200px. Apter add content height = 200px :(. Overflow not use. Can get height div "igpopup" after add content in div "igbottom"?

Not sure the exact question. Height after a dynamic change to a div tag can be found in mootools by using:

    var height = $('divId').offsetHeight;

if the div is closed, or hidden but you want it's open height, consider flipping the div open, measuring the height, and then closing the div again. This all happens without onscreen document (visible) changes. If you need directions lookup "How to calculate each element's height and use these values as a variable in function?". There is a mootools answer in there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM