Solved! Go to Solution.
case "vertical": { var vLayout:VerticalLayout = new VerticalLayout; vLayout.horizontalAlign = "left"; vLayout.paddingBottom = 10; vLayout.paddingLeft = 25; vLayout.paddingTop = 10; vLayout.gap = 35; widgetContainer.layout = vLayout; isDraggable = false; isResizeable = false; break; }
<s:BorderContainer id="vControl" y="300" width="22" height="80" left="0" borderVisible="true" borderWeight="1" cornerRadius="3" creationComplete="vControl_creationCompleteHandler(event)" layoutDirection="ltr" visible="{_vv}">
<s:Group id="widgetContainer" width="100%" height="100%" left="{_left}" left.collapsedRight="{- containerWidth}" left.resized="{_left}" right="{_right}" right.normal="{_right}" right.resized="{_right}" top="{_top}" top.collapsedDown="{containerHeight}" top.resized="{_top}" bottom="{_bottom}" bottom.resized="{_bottom}" clipAndEnableScrolling="true" elementAdd="widgetAddedHandler(event)"/>
case "vertical": { var vLayout:VerticalLayout = new VerticalLayout; vLayout.horizontalAlign = "left"; vLayout.paddingBottom = 10; vLayout.paddingLeft = 25; vLayout.paddingTop = 10; vLayout.gap = 35; widgetContainer.layout = vLayout; isDraggable = false; isResizeable = false; break; }
<s:BorderContainer id="vControl" y="300" width="22" height="80" left="0" borderVisible="true" borderWeight="1" cornerRadius="3" creationComplete="vControl_creationCompleteHandler(event)" layoutDirection="ltr" visible="{_vv}">
<s:Group id="widgetContainer" width="100%" height="100%" left="{_left}" left.collapsedRight="{- containerWidth}" left.resized="{_left}" right="{_right}" right.normal="{_right}" right.resized="{_right}" top="{_top}" top.collapsedDown="{containerHeight}" top.resized="{_top}" bottom="{_bottom}" bottom.resized="{_bottom}" clipAndEnableScrolling="true" elementAdd="widgetAddedHandler(event)"/>
Lei,
You will have to make changes to the WidgetContainer.mxml FlexViewer2.5\src\widgets\WidgetContainer\WidgetContainer.mxml find the setWidgetLayout function and then make this changes indicated below:case "vertical": { var vLayout:VerticalLayout = new VerticalLayout; vLayout.horizontalAlign = "left"; vLayout.paddingBottom = 10; vLayout.paddingLeft = 25; vLayout.paddingTop = 10; vLayout.gap = 35; widgetContainer.layout = vLayout; isDraggable = false; isResizeable = false; break; }
And this change as well:<s:BorderContainer id="vControl" y="300" width="22" height="80" left="0" borderVisible="true" borderWeight="1" cornerRadius="3" creationComplete="vControl_creationCompleteHandler(event)" layoutDirection="ltr" visible="{_vv}">
And this:<s:Group id="widgetContainer" width="100%" height="100%" left="{_left}" left.collapsedRight="{- containerWidth}" left.resized="{_left}" right="{_right}" right.normal="{_right}" right.resized="{_right}" top="{_top}" top.collapsedDown="{containerHeight}" top.resized="{_top}" bottom="{_bottom}" bottom.resized="{_bottom}" clipAndEnableScrolling="true" elementAdd="widgetAddedHandler(event)"/>
Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
Thank you very much!