Merge branch 'master' into snapshotserver
[potlatch2.git] / net / systemeD / potlatch2 / BackgroundSelector.mxml
index 964bf98deb0521c1cf5217c97223d39e0611130d..2c483390bf15a7e5b6f1035ea24c2a5dfb850aa8 100644 (file)
@@ -8,7 +8,7 @@
                        labelField="name"
                        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}"/>
+               rowCount="{Imagery.instance().getAvailableImagery().length}"/>
        <mx:HBox>
        <mx:CheckBox width="100%" label="Dim" selected="{Application.application.theMap.getDimming()}" id="dim"
            change="setDimming(dim.selected)" />
@@ -22,6 +22,7 @@
        </mx:HBox>
 
        <mx:Script><![CDATA[
+
                import net.systemeD.halcyon.*;
                import net.systemeD.halcyon.connection.*;
                import net.systemeD.potlatch2.*;
@@ -29,7 +30,6 @@
                import mx.core.*;
                import mx.collections.ArrayCollection;
                import mx.managers.PopUpManager;
-               import net.systemeD.halcyon.Globals;
 
                public function setDimming(v:Boolean):void {
                        Application.application.theMap.setDimming(dim.selected);