nope, sorry if it was messed up but the xml was correct... there is an outer 
canvas with a child vbox which, in turn, has 3 children: 2 vbox components and 
a canvas - whose contents get included during runtime.

i'll try to explain my problem again :) let me clear up the mxml a little... ;)

<mx:Canvas id="outerCanvas">
<mx:VBox id="outermostVbox">
<mx:VBox id="vbox1"></mx:VBox>
<mx:Canvas id="innerCanvas"></mx:Canvas>
<mx:VBox id="vbox2"></mx:VBox>
</mx:VBox>
</mx:Canvas>

during runtime, this whole mxml is placed inside a draggable panel. 
"innerCanvas" contains a graph/map representation that is created dynamically 
during runtime. let's forget for the meantime about "vbox1" and "vbox2" 
contents...

anyway, after "innerCanvas" is created during runtime, it is zoomed out. but, 
after zoom out, i need it (the map) to center... or to focus at a certain point 
(but that's another story). i accomplish this by targetting "outermostVbox" 
using an <mx:Move>... so i did that. however, although the map *did* center, 
the problem is that the scrollbars on the "outerCanvas" remained at 0 (and yes, 
the scrollbars belonged to "outerCanvas" and not the draggable panel or the 
other components). the consequence of this is that since the scrollbar is 0 and 
the map centered, whatever fell to the *left* of the viewable area gets 
clipped... that's why i need the scrollbar to move so that it would adjust 
according to the position of the map... which it doesn't in my case.

so i debugged and i found out that the maxHorizontalScrollPosition is 0 so i 
can't pretty much move the scrollbar... no matter where i looked, that position 
is always 0... be it in the parent or the other children, etc. etc. so... the 
part of the map outside of the viewable area is still unviewable...

i tried various means... from manipulating the size of the "innerCavas" so that 
the "outerCanvas" would recognize the child canvas' dimensions (and hopefully 
reassess that there IS a scrollbar so that the maxHorizontalScrollPosition 
would have a value other than 0) to changing values of the scroll policies to 
other things including the use of horizontalCenter and verticalCenter ^^; 
however, it - the scrollbar - just doesn't want to move...

thanks so far for the replies :)

Giles Roadnight <[EMAIL PROTECTED]> wrote:            It's not very clear what 
you are asking I'm afraid. Also the xml you supplied is not valid (jsut to be 
picky). I assume you mean:

 <canvas>
   <vbox>
     <vbox />
     <canvas />
     <vbox >
   </vbox>
 </canvas>

you coudl try horizontalCenter="0" and verticalCenter="0" on the inner canvas 
to keep it centered. I'm not sure what you mean by the scrollbars and clipping.

 On Dec 17, 2007 3:54 AM, callistachan <[EMAIL PROTECTED]> wrote:
                                    hi, i'm relatively new to all this so 
please bear with me... =)
 
 i have something like this in my mxml file:
 
 <canvas>
   <vbox>
     <vbox />
     <canvas />
     <vbox />
   </vbox>
 </canvas>
 
 now, all of this gets stored inside a draggable panel during runtime.
 also, during this time, the inner canvas gets zoomed out and should
 center after the zoom... i accomplish this using <mx:Move>. however,
 even if it does center, the content gets clipped and the horizontal
 scrollbar still stays at 0 (most likely because the
 maxHorizontalScrollPosition is also 0)... i tried various ways of
 moving it already but it doesn't seem to want to since most of the
 dimensions i need are 0 :(
 
 if anyone can help, i would really appreciate it. thanks!
 
 
     
               
              





-- 
Giles Roadnight
http://giles.roadnight.name   


May God bless! Kiwotsukete ^^x
Lee 
Y!M : callistachan
----------
Blog: http://www.geocities.com/callistachan
RKFF: http://www26.brinkster.com/callie
RKFF: http://www.geocities.com/himurasan
RK Shrine: http://www.freewebz.com/shinta
       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Reply via email to