flex - Letting 2 progressbars overlap eachother -
hello have following flex code:
<mx:vbox verticalgap="0"> <mx:progressbar id="bar" labelplacement="top" visible="true" verticalgap="0" color="0x323232" label="{data.packageid}" direction="right" mode="manual" fontweight="bold" trackheight="10" width="400" bottom="-4"/> <mx:progressbar id="subbar" visible="true" width="400" label="{data.status}" verticalgap="0" bordercolor="#c70000" direction="right" enabled="true" top="-5" indeterminate="false" labelplacement="bottom" maximum="100" minimum="0" mode="manual" themecolor="#c70000" trackheight="3"/> </mx:vbox> right these 2 elements positioned under eachother, want bottom progressbar positioned @ bottom of top progressbar. in other words, bottom of top progressbar , bottom of bottom progressbar should have same y value. appreciated.
instead of vbox force things not overlap, use group. not sure version of flex using, lets assume 4.0 or 4.5:
<s:group> <mx:progressbar id="bar" labelplacement="top" visible="true" verticalgap="0" color="0x323232" label="{data.packageid}" direction="right" mode="manual" fontweight="bold" trackheight="10" width="400" bottom="-4"/> <mx:progressbar id="subbar" visible="true" width="400" label="{data.status}" verticalgap="0" bordercolor="#c70000" direction="right" enabled="true" top="-5" indeterminate="false" labelplacement="bottom" maximum="100" minimum="0" mode="manual" themecolor="#c70000" trackheight="3"/> </s:group> from there have easier time positioning.
Comments
Post a Comment