Minus Posted September 5, 2013 Share Posted September 5, 2013 Can someone help me understand why this happens?http://jsfiddle.net/tKehC/1/ Quote Link to comment https://forums.phpfreaks.com/topic/281865-funciton-for-calculating-the-combined-height-of-childnodes/ Share on other sites More sharing options...
kicken Posted September 5, 2013 Share Posted September 5, 2013 You need to make a more accurate test case that reproduces the problem. Either of those lines work just fine for me if I toss in some quick sample HTML and run it. Quote Link to comment https://forums.phpfreaks.com/topic/281865-funciton-for-calculating-the-combined-height-of-childnodes/#findComment-1448219 Share on other sites More sharing options...
Irate Posted September 5, 2013 Share Posted September 5, 2013 Do you need to get margin and padding? If so, use clientHeight. Alternatively, try using the jQuery .scrollTop().top property. Just some ideas based on the OP. Quote Link to comment https://forums.phpfreaks.com/topic/281865-funciton-for-calculating-the-combined-height-of-childnodes/#findComment-1448279 Share on other sites More sharing options...
Minus Posted September 5, 2013 Author Share Posted September 5, 2013 You need to make a more accurate test case that reproduces the problem. Either of those lines work just fine for me if I toss in some quick sample HTML and run it. So I put this (http://jsfiddle.net/F8zWW/1/) together to illustrate what I'm trying to do and it works properly. The problem is obviously not my javascript but likely in my html. Thanks for trying though. Quote Link to comment https://forums.phpfreaks.com/topic/281865-funciton-for-calculating-the-combined-height-of-childnodes/#findComment-1448342 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.