Don't make background menu bigger than screen
authorRichard Fairhurst <richard@systemeD.net>
Fri, 24 Mar 2017 16:42:50 +0000 (16:42 +0000)
committerRichard Fairhurst <richard@systemeD.net>
Fri, 24 Mar 2017 16:42:50 +0000 (16:42 +0000)
net/systemeD/potlatch2/BackgroundSelector.mxml

index 2b2739f..f1b16e4 100644 (file)
@@ -13,6 +13,7 @@
             labelField="name"
             change="FlexGlobals.topLevelApplication.bgButton.close(); application.theMap.tileset.setBackgroundFromImagery(background.selectedItem,true);"
             dataProvider="{Imagery.instance().getAvailableImagery(application.theMap)}"
+                       maxHeight="{this.screen.height-120}"
             selectedItem="{application.theMap.tileset.selected}">
       <s:layout>
         <s:VerticalLayout requestedRowCount="{Imagery.instance().getAvailableImagery(application.theMap).length}" gap="0" horizontalAlign="contentJustify"/>