Hi,
I seem to remember a fix for this , either it's in latest snapshot code, or still in the patches section.
 
You are probably using a doctype declaration with a URL in it. This will always switch IE6 into strict mode, even when using transitional doctype.
Delete the URL from the doctype, and all should be ok. (don't use a "strict" doctype of course)
 
Cheers,
Richard.
 
----- Original Message -----
Sent: Friday, December 14, 2001 1:00 PM
Subject: [Dynapi-Help] problems with getHeight and getContentHeight on IE6

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

Reply via email to