Graphical layout anamoly
hi all,
i building graphical layout dragging set of buttons onto canvas , connecting them drawing lines. save layout in database(by saving properties (x,y) coordinates on canvas, icon associated etc). load layout again database whenever need.
now, problem is, when populate canvas many buttons, makes canvas scrollable, connectors(lines connecting buttons) dont adjust new canvas. precise, once scroll bars appear, , scroll canvas down, buttons maintain original positions, connectors kind of stick canvas , move down canvas moves making them random lines drawn on canvas.
can tell me have make connectors maintain positions along buttons???
message edited by: ronniecr7
hi ronnie,
have fixed canvas height in adding many buttons...???
if have fixed height of canvas....remove fixed height of canvas , give container enclosing canvas vbox
container , fix height vbox , make canvas extend full height without scrolling...
so structure should below..
<mx:vbox verticalgap="0" width="100%" height="400">
<mx:canvas width="100%">
// dynamic buttons added here...here should should not scrollable ..but vbox should scrollable can see
// contents..
</mx:canvas>
</mx:vbox>
hope got point ...
thanks,
bhasker chari.s
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment