Select to view content in your preferred language

Can I show all the widgets on the left?

610
4
Jump to solution
02-06-2012 12:31 PM
LeiZhou
Deactivated User
In config file, I set the widgetcontainer???s layout="vertical" as the following:

<widgetcontainer layout="vertical" left="10" top="50">

All the widgets should show up on the left, but they are always on the right.  Is there  any way that I can change the position? Thanks!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
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:

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
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:
0 Kudos
LeiZhou
Deactivated User
Thank you very much!

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:
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Lei,

   You need to mark MY post as the answer and not Yours!
0 Kudos
LeiZhou
Deactivated User
OK, I got it. Sorry for that! It seems I can not change that back...

Thank you very much!
0 Kudos