Ryan Florence wrote:
mooshell.net :)?
I use getSize and getScrollSize like crazy in a few of my classes and
never get whacky results unless my CSS is garbage.
Seem's I can't reproduce it in mooshell!
The css on the element in question is "overflow:hidden" :)
I've noticed however that this quirk only seems to occur when i'm
assigning the results to variabls, ie
alert($('dirListContainer').getSize().y);
alert($('dirListContainer').getScrollSize().y);
Will give me the correct results but
var visSize = $('dirListContainer').getSize().y;
var actualSize = $('dirListContainer').getScrollSize().y;
alert(actualSize +' '+visSize);
Just gives me the same value twice!
Am I missing something painfully obvious here or is this possibly a
browser quirk ?
------------------------
Mike Woods
Full of squishy cynicism