flex4.7

List with multilined (word wrapping) item renderer - how to scroll to the bottom? With test case and screenshots

谁说我不能喝 提交于 2019-12-02 15:58:03
问题 In a Flex 4 web application I am trying to use a spark.components.List for a chat (for various reasons - it works well for me in a Flex mobile app already), but because I use an item renderer which can be multilined (i.e. wraps too long lines) I have the problem, that I can not scroll the list to its bottom by calling its ensureIndexIsVisible method: I have prepared a very simple test. These are just 2 files, which will work instantly, when you put them into a new Flex project in Flash

List with multilined (word wrapping) item renderer - how to scroll to the bottom? With test case and screenshots

元气小坏坏 提交于 2019-12-02 08:59:30
In a Flex 4 web application I am trying to use a spark.components.List for a chat (for various reasons - it works well for me in a Flex mobile app already), but because I use an item renderer which can be multilined (i.e. wraps too long lines) I have the problem, that I can not scroll the list to its bottom by calling its ensureIndexIsVisible method: I have prepared a very simple test. These are just 2 files, which will work instantly, when you put them into a new Flex project in Flash Builder - MyApp.mxml: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com

Styling ButtonBar font in Flex mobile app - with screenshot attached

只谈情不闲聊 提交于 2019-12-02 01:52:40
问题 I'm trying to add a ButtonBar at the bottom of a mobile Flex app by using this code: CSS: @namespace s "library://ns.adobe.com/flex/spark"; s|ActionBar, s|ButtonBar { chromeColor: #0066CC; color: #FFFFFF; titleAlign: center; } ActionScript: <s:ButtonBar requireSelection="true" width="100%" bottom="0" skinClass="spark.skins.mobile.TabbedViewNavigatorTabBarSkin"> <s:ArrayCollection> <fx:Object label="Распасы" /> <fx:Object label="Пуля" icon="{MONEY}" /> <fx:Object label="10" icon="{CALL}" /> <