paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10"
horizontalAlign="left" backgroundColor="white" borderStyle="inset">
- <mx:List width="100%" height="100%" id="background" verticalScrollPolicy="on"
+ <mx:List width="100%" height="100%" id="background"
labelField="name"
- change="Application.application.bgButton.close(); Imagery.instance().setBackground(background.selectedItem);"
- dataProvider="{Imagery.instance().getAvailableImagery()}" />
+ change="Application.application.bgButton.close(); Imagery.instance().setBackground(background.selectedItem);"
+ dataProvider="{Imagery.instance().getAvailableImagery()}"
+ updateComplete="{background.width=background.measureWidthOfItems()+2;background.height=background.measureHeightOfItems()+2}"/>
<mx:HBox>
<mx:CheckBox width="100%" label="Dim" selected="{Application.application.theMap.getDimming()}" id="dim"
change="setDimming(dim.selected)" />
<mx:List width="100%" height="100%" id="mapStyle"
labelField="name"
change="Application.application.styleButton.close(); Stylesheets.instance().setStylesheet(mapStyle.selectedItem.name, mapStyle.selectedItem.url);"
- dataProvider="{Stylesheets.instance().getCollection()}" />
+ dataProvider="{Stylesheets.instance().getCollection()}"
+ updateComplete="{mapStyle.width=mapStyle.measureWidthOfItems()+2;mapStyle.height=mapStyle.measureHeightOfItems()+2}" />
<mx:Button label="Edit..." click="new BackgroundDialog().init('Map style',mapStyle,Stylesheets.instance());" />