Select to view content in your preferred language

widget position in widgetcontainer vertical layout

3492
1
Jump to solution
01-30-2013 06:01 PM
ArowanaIndah
Deactivated User
hi,
Is there a way to set widget xy position in widgetcontainer layout ="vertical" because when i open my flexviewer application, widget in widgetcontainer layout ="vertical" open in top position. So how do i make the widget in widgetcontainer vertical layout , for exmaple will open in center position of my flexveiwer application
thank
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Notable Contributor
Not quite sure what you are asking.  If you want to keep it in vertical (which means it will be pinned to the sides of the viewer) but want to have a particular widget at the top, bottom, middle, etc., the order in the vertical layout represents the order opened.  So

<widgetcontainer layout="vertical">          <widget label="Legend" x="85" y="50" preload="open" height="550"     icon="assets/images/Legend32.png"     config="widgets/Legend/LegendWidget.xml"     url="widgets/Legend/LegendWidget.swf"/>         <widget label="TOC" right="30" top="100" preload="open" height="320"     icon="assets/images/i_folder.png"     config="widgets/TOC/TOCWidget.xml"     url="widgets/TOC/TOCWidget.swf"/>


would open the FV with the Legend widget above the TOC widget, but both pinned to the side of the viewer.

If you really want the widget to be in the center of your viewer, you would use <widgetcontainer layout="float"> instead of vertical.  this way, the x, y, top, bottom, right, left tags can be used to set the initial opening position.

R_

View solution in original post

0 Kudos
1 Reply
RhettZufelt
MVP Notable Contributor
Not quite sure what you are asking.  If you want to keep it in vertical (which means it will be pinned to the sides of the viewer) but want to have a particular widget at the top, bottom, middle, etc., the order in the vertical layout represents the order opened.  So

<widgetcontainer layout="vertical">          <widget label="Legend" x="85" y="50" preload="open" height="550"     icon="assets/images/Legend32.png"     config="widgets/Legend/LegendWidget.xml"     url="widgets/Legend/LegendWidget.swf"/>         <widget label="TOC" right="30" top="100" preload="open" height="320"     icon="assets/images/i_folder.png"     config="widgets/TOC/TOCWidget.xml"     url="widgets/TOC/TOCWidget.swf"/>


would open the FV with the Legend widget above the TOC widget, but both pinned to the side of the viewer.

If you really want the widget to be in the center of your viewer, you would use <widgetcontainer layout="float"> instead of vertical.  this way, the x, y, top, bottom, right, left tags can be used to set the initial opening position.

R_
0 Kudos