Hi
I'm doing a scrolling-thing with a loadPanel loaded
into a container-layer. I need do get the inner-height of the loadPanel-layer,
but on IE6 both getHeight and getContentHeight returns the same value (the outer
height).
My code is thus:
-----------------------------------------
var
containerLayer = windowCreated.addChild(new DynLayer(null, 7, 22, 290,
228));
var
textLayer = new
LoadPanel();
containerLayer.addChild(textLayer); textLayer.setHTML("Loading..."); textLayer.setSize(290, 228); textLayer.moveTo(0,0); textLayer.setURL(parameter); alert(textLayer.getHeight()); //returns 228 alert(textLayer.getContentHeight()); //returns 228 -----------------------------------------
I have also tried to remove the height-parameter in
the textLayer.setSize. The getHeight then returned "null" and the get
ContentHeight returned 0...
I got it all working on a IE5.5 a few months ago,
though...
I am baffeled - can you help me? I mean -
it must be possible how else could all the scrolling-examples work?
/Anders
|
- Re: [Dynapi-Help] problems with getHeight and ge... Anders Skovgaard-Petersen
- Re: [Dynapi-Help] problems with getHeight a... Richard Bennett