Integrating search functionality from AntTheLimey
[potlatch2.git] / net / systemeD / potlatch2 / StyleSelector.mxml
index 9cc34e4..d839ad7 100644 (file)
@@ -7,9 +7,10 @@
        <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()}"
+               rowCount="{Stylesheets.instance().getCollection().length}" />
 
-       <mx:Button label="Edit..." click="new BackgroundDialog().init('Map style',mapStyle,Stylesheets.instance());" />
+       <mx:Button label="Edit..." click="Application.application.styleButton.close(); new BackgroundDialog().init('Map style',mapStyle,Stylesheets.instance());" />
 
        <mx:Script><![CDATA[
                import net.systemeD.halcyon.*;