I am able to get the scrollbar using the below code:

<mx:Panel width="78%" height="100%" horizontalScrollPolicy="auto"
verticalScrollPolicy="auto" id="layer" includeIn="graph"
horizontalAlign="center" title="Hierarchial Graph">

   <mx:Canvas width="100%" height="100%" horizontalScrollPolicy="auto"
verticalScrollPolicy="auto" id="layerCanvas">


    <controls:FlexExploreGraph id="flexgraph" height="100%" width="100%"/>

   </mx:Canvas>


  </mx:Panel>
 But the content which is in the custom component FlexExploreGraph is
getting displyed towards left side.Ex:I am displaying a graph in the custom
component and the graph is getting displayed towards left side and I can see
only half part of the graph when the application is loaded.If I manually
move the graph with mouse to the center then I can see the whole graph.

Can anyone solve my problem?


On Tue, Mar 8, 2011 at 9:52 PM, <[email protected]> wrote:

> put panel inside canvas
>
>
> On Tue, Mar 8, 2011 at 20:11, madhavi chinni 
> <[email protected]>wrote:
>
>> Hi,
>>
>> I want to get a scrollbar for a panel if the data in the Panel is more
>> than its width and height.
>> Below is the code which I have written:
>> <mx:Panel width="78%" height="100%" horizontalScrollPolicy="auto"
>> verticalScrollPolicy="auto" id="layer" includeIn="graph"
>> horizontalAlign="center" title="Hierarchial Graph">
>>
>>                        <controls:FlexExploreGraph id="flexgraph"
>> height="100%"
>> width="100%"/>
>>
>>
>>                </mx:Panel>
>> FlexExploreGraph is the custom component which I am displaying in the
>> Panel.
>> I am not getting the scrollbar even if the height of the data in the
>> customcomponent I am using is more than the height of the Panel.
>>
>> Please help!!!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>>
>>
>
>
> --
> Fear is an illusion, So, face it !
> RM3sh
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to