Determine Maximum Possible DIV Height
This is your code, modified to use binary search (so it’s much quicker). http://jsfiddle.net/thai/zkuGv/4/ It begins at 1 pixel and doubling its size until the it hits the maximum (I use 253, which is the biggest integer that can be stored in JavaScript without losing precision and would make the binary search buggy), or the … Read more