Henrik,

Thanks for the advice, unfortunately it did not fix the problem. You state 
that you had the same problem, did you ever get it working or did you just 
leave the content left justified?

It seems to me that the scrollpane (L12) is the one that might be causing the 
problem since I am able to move the loadpanel (L11) around inside the 
scrollpane but there is a "clipped" area that does not move with it. The 
clipped area seems to resize for each new content (that is why when the 
content is positioned at 0,0 you can see all of it), but because it is always 
located at 0,0 the content is hidden from site when ever it moves beyond the 
clipped area.

I looked at scrollpane.js, and viewport.js but could not figure out what 
needed to be tweaked.

Anyone have any more suggestions I could try??

Ed Baxter

On Tuesday , 03/06/2001 23:57:09  Henrik Våglin wrote:

Well, I'm no guru, but I've had a similar if not exactly the same issue. 

My suggestion is to try creating L12 before you set the L11 eventlistener.
The eventlistener uses L12 to calculate the values from its size and so
it must know what its size is the first time it is loaded - ie before L12
is created in this case I figure. 

I'm not certain it will solve all of your problem but i's worth a try to
keep your head intact, eh? ;)

BTW if you want you can use my layerpos dynlayer extension from the ccreation
widget pack for easy positioning. You'll find and example at 
http://www.dynapi.f2s.com/dynapi/examples/ccreation.ext.layerpos.htm
and can download the file(s) at 
http://www.dynapi.f2s.com/dynapi/src/lib/ccreation/ext/
(it then goes into the concurrent path in your site)

Henrik Våglin [ <EMAIL: PROTECTED> ]

----- Original Message ----- 
From: "Ed Baxter" <<EMAIL: PROTECTED>>
To: <<EMAIL: PROTECTED>>
 Sent: Wednesday, March 07, 2001 5:51 AM
 Subject: [Dynapi-Help] centering loadpanel content in a scrollpane


> Dynapi Gurus,
> 
> I'm having trouble with centering content within a loadpanel-scrollpane
> combo. [...], when I center the loadpanel using
> an onload event listener attached to the loadpanel, the loadpanel will 
center
> in the scrollpane but becomes obscured due to what appears to be a 
clipping
> issue.
> 
> When this example first loads you will see the smaller content slide 
away as
> it is centered. Load file two and you will see it is partially cut off. Move
> the loadpanel to 0,0 using the provided link and you will see file 2 in it's
> entirety.
> 
> Any help on this is appreciated cause my head hurts from banging it on the
> wall ;-)
> 


     _________________________________________________________
     Do You Yahoo!?
     Get your free @yahoo.com address at http://mail.yahoo.com


     _______________________________________________
     Dynapi-Help mailing list
     <EMAIL: PROTECTED>
     http://lists.sourceforge.net/lists/listinfo/dynapi-help


                     

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to