Item does not display in correct position with TileLayout

Please take a look at below coding. If I choose Frank and click button “age<5", the damn Frank stays still rather than the first column.
What else should I do after refreshing the data list?
Best Regards,
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                                        xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
          <fx:Script>
                    <![CDATA[
                              import mx.collections.Sort;
                              protected function button1_clickHandler(event:MouseEvent):void
                                        // TODO Auto-generated method stub
                                        list.filterFunction = f1;
                                        list.refresh();
                              protected function button2_clickHandler(event:MouseEvent):void
                                        // TODO Auto-generated method stub
                                        list.filterFunction = f2;
                                        list.refresh();
                              private function f1(item:Object):Boolean
                                        var i:int = int(item.age);
                                        return i<20;
                              private function f2(item:Object):Boolean
                                        var i:int = int(item.age);
                                        return i>5;
                    ]]>
          </fx:Script>
          <fx:Declarations>
                    <!-- Place non-visual elements (e.g., services, value objects) here -->
                    <s:ArrayCollection id="list">
                              <fx:Object name="April" age="1"  sex="male" />
                              <fx:Object name="Brown" age="2"  sex="male" />
                              <fx:Object name="Cindy" age="3"  sex="male" />
                              <fx:Object name="Daren" age="4"  sex="male" />
                              <fx:Object name="Emily" age="5"  sex="male" />
                              <fx:Object name="Frank" age="6"  sex="male" />
                              <fx:Object name="Green" age="7"  sex="male" />
                              <fx:Object name="Helen" age="8"  sex="male" />
                              <fx:Object name="Ice" age="9"  sex="male" />
                              <fx:Object name="Jack" age="10"  sex="male" />
                              <fx:Object name="Lance" age="11"  sex="male" />
                              <fx:Object name="Mary" age="12"  sex="male" />
                              <fx:Object name="Nancy" age="13"  sex="male" />
                              <fx:Object name="Opera" age="14"  sex="male" />
                              <fx:Object name="Quntas" age="15"  sex="male" />
                              <fx:Object name="Ray" age="16"  sex="male" />
                              <fx:Object name="Stone" age="17"  sex="male" />
                              <fx:Object name="Tom" age="18"  sex="male" />
                    </s:ArrayCollection>
          </fx:Declarations>
          <s:List x="69" y="57" width="320" height="320" dataProvider="{list}" itemRenderer="spark.components.LabelItemRenderer"
                                                  labelField="name">
                    <s:layout>
                              <s:TileLayout columnWidth="100" orientation="rows" requestedColumnCount="3"
                                                                                                    requestedRowCount="3" rowHeight="100"/>
                    </s:layout>
          </s:List>
          <s:Button x="63" y="9" label="age &lt; 20" click="button1_clickHandler(event)"/>
          <s:Button x="157" y="9" label="age &gt; 05" click="button2_clickHandler(event)"/>
</s:View>

Hi,
It seems that is a problem with selectedIndex.
Try:
protected function button1_clickHandler(event:MouseEvent):void
    myList.selectedIndex = -1;
    list.filterFunction = f1;
    callLater(applySort);
protected function button2_clickHandler(event:MouseEvent):void
    myList.selectedIndex = -1;
    list.filterFunction = f2;
    callLater(applySort);
private function applySort():void
    list.refresh();
<s:List id="myList" x="69" y="57"...
Philippe

Similar Messages

  • InDesign CS5.5 does not display fonts correctly

    InDesign CS5.5 does not display Futura fonts correctly. I have removed all versions of Futura from FontBook on my Mac (running Mac OSX 10.7.4) but CS5.5 - Indesign, Illustrator & photoshop - still displays Futura as being open but only InDesign does not display the font correctly. The font displays correctly when I open InDesign CS4 and all other versions of Illustrator and Photoshop.  I really need to use this font. What's going on with InDesign?

    In your first screen shot , there are 2 futura font ,one is Adobe Type 1 font and the second one is True Type, you might have installed both the type of the font on your computer sometime. Now you have removed all the futura font and it is still showing in the Indesign , also the same thing happened with the Minion Pro , seems to me the font cache is not updating.
    First remove the Adobe Font cache's file:-
             At the Finder, choose File > Find.  
             Type AdobeFnt.lst, select the system drive, and then press Return.  
             Delete all AdobeFnt.lst files found (for example, AdobeFnt10.lst).
    then clear system font cache  :-  
    Launch Terminal (from /Applications/Utilities)
    Enter the following command at the prompt and press Return: sudo atsutil databases -remove
    Restart your computer immediately
    and check

  • "View Selected Item" does not display

    I'm using RoboHelp7 out of the Technical Communication Suite.
    When I'm working on a topic and select the
    View Selected Item button, the topic does not display. When
    I first tried yesterday, nothing happened (IE didn't open and there
    was nothing in my tray). I contacted Oversea's support and was
    informed that there wasn't an incident for this occurance. I was
    instructed to uninstall and reinstall RoboHelp.
    I uninstalled and reinstalled the applications and the button
    still doesn't work; however, this time there is an hourglass for an
    instant before not producing any results.
    The button doesn't work with anything that I've created or
    with the example projects (Clownfish School). Any help would be
    greatly appreciated. I'd hate to have to regenerate the project
    just to look at a quick change.
    Thanks,
    Matt

    Sounds like I need to add a note to that Snippet. Thanks.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Firefox 3.6 does not display pages correctly

    I recently upgraded to 3.5 beta 4 and it worked ok. 2 weeks ago it stopped displaying pages correctly. Uninsalling and reinstalling did not cure problem. I unistalled and installed v3.6. Same problem.
    I could provide a screenshot of Mozilla home page. Backgrounds, table borders and some inages to not display. I have disabled all plugins and "load images automatically" is checked.
    The images and background of this page do not display. I checked with K-meleon and IE.

    If you have increased the minimum font size then try the default setting "none" as a (too) high value can cause issues.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    *https://support.mozilla.org/kb/Changing+fonts+and+colors
    It is better not to increase the minimum font size, but use an extension to set the default page zoom to prevent issues with overlapping text.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    On other platforms instead of Tools > Options use:
    *Mac: Firefox > Preferences
    *Linux: Edit > Preferences
    *Windows: Firefox > Options
    <i>Press F10 if the menu bar is hidden on Windows and Linux or use "Firefox > Options/Preferences"</i>

  • StageWebView does not display a https website with captive runtime library on Android

    Hi,
    I'm working on a flex app for tablets (both iOS and Android) and it does not display a particular https website in a StageWebView. The strange thing is, that this issue happens only with this url (required for Google OAuth) and if I deploy the app with a captive air runtime library.
    I see the below stack trace in the system logs:
    W/System.err(26027): java.lang.NullPointerException
    W/System.err(26027):    at java.io.File.fixSlashes(File.java:185)
    W/System.err(26027):    at java.io.File.<init>(File.java:134)
    W/System.err(26027):    at com.adobe.air.JavaTrustStoreHelper.getX509TrustManagerFactory(JavaTrustStoreHelper.java:8 1)
    W/System.err(26027):    at com.adobe.air.JavaTrustStoreHelper.getX509TrustManager(JavaTrustStoreHelper.java:110)
    W/System.err(26027):    at com.adobe.air.JavaTrustStoreHelper.enumerateRootCAs(JavaTrustStoreHelper.java:195)
    W/System.err(26027):    at dalvik.system.NativeStart.run(Native Method)
    If I deploy the same app with a shared air runtime library and no code change at all, there's no issue at all. Also no problems while debugging or executing from Flash Builder on the device.
    The issue happens only with this Google URL, it's all okay with Facebook's auth url (https://www.facebook.com/dialog/oauth).
    The device is a Samsung Galaxy Tab2 10.1 with Ice Cream Sandwich (Android 4.0) on it.
    I would appreciate any idea with this issue.
    Thanks,
    Gabor

    Updating the AIR SDK from 3.1 to 3.4 has resolved the issue.
    Too bad that this needs to be done manually as described here: http://www.flashdeveloper.co/post/10985842021/overlay-adobe-air-32-in-flash-builder-46
    Many thanks for the hint, Pata.
    Regards,
    Gabor

  • Firefox does not display websites correctly. Images are missing or out of position.

    Too much white space. How do I downgrade back to 3.6.3? I have another computer running that version that displays everything correctly. Text is also placed incorrectly. Even this Mozilla page has no images. Only white space with a fuzzy 'mozilla' in the upper left-hand corner.

    Thanks:
    The Fonts & Colours option worked wonderfully for me and now my pages are displaying the colour and images I expected to see. So very simple in the end. Is it related to the current upgrad? At least I will not have to trouble with attempting to revert to an earlier version.
    Bruce

  • RH9 + IE10 does not display fonts correctly

    Hi,
    When I view the published documentation in IE10 & Firefox 16.0.1
    Bolded font displays "exaggerated" (thick and wide) and not as intended. This style was applied using the B button on the RH toolbar. Resulting code is <span style="font-weight:bold;"></span>
    Font which is bolded as a result of an assigned style, displays correctly.
    Font family in CSS is Arial.
    This does not happen when viewing the same documentation in IE using Compability View (to view as if IE9). In fact, this issue only occurred in IE since moving to IE10. Not sure about previous versions of Firefox.
    I have applied the patch provided by William to RH9 for viewing on IE10.
    I have also verified that font options are unchecked in IE's Internet Options > Accessibility window.
    At the moment, I can't confirm this occurs when viewing on another machine.
    Any suggestions?
    RH 9.0.2.271, Webhelp
    Windows 7

    Hi,
    Very weird. Do these extra bold texts by change have both the inline styling as well as a css attached? I think I’ve seen a similar issue that revolved around bold text within bold text.
    Another solution may be to find and replace you bold styles with CSS classes.
    Greet,
    Willam

  • Advert does not display in Virginmedia Homepage with IE9

    Flashplayer is installed and seems to be working but in Virginmedia.com Homepage there is a blank space where there should be an advert using IE9. Using Firefox the advert displays as it should. If I open Ancestry.co.uk in IE9 I get one of those yellow warning bars telling me "Add-on for this web site failed to run" and once again there is a blank space where there should be an advert that again displays as it should in Firefox.
    The odd thing is that Flashplayer seems to be working and is enabled in Manage Add-ons. I really don't want to have to use Firefox and all my settings in Internet Options seem to be OK. (My daughter doesn't have any problems with her computer and we compared settings that seem to be the same).
    Could this be a Flashplayer problem or does anyone have any suggestions please?

    Hi Judesman, I'm late getting on the Forum today. Are you saying that there are that many addons from SpywareBlaster in your browser?
    I have researched SpywareBlaster and have a very negative opinion on it. It is very intrusive and would never have it on my system nor recommend it to anyone.
    Microsoft Security Essentials is a free Anti-Virus and Anti-Spyware program. It does not install any addons into the browser and is very light on resources and easy to use. It does not contain a Firewall, but Windows Firewall works well.
    I would go here and download it but SAVE it to your Desktop.
    http://www.microsoft.com/en-us/security_essentials/default.aspx
    Then I would go to this website which is very good and follow the procedures to Uninstall SpywareBlaster.
    When it is Uninstalled, then Reboot(restart) your computer.
    http://www.bleepingcomputer.com/uninstall/2208/SpywareBlaster-v3.5.1.html
    Then I would Close all browser windows, Run to Install MSE(Microsoft Security Essentials) when it is finished Installing I think it will update and run a scan. If not, you can do that from the Home page.
    This will give you good protection along with your IE browser.
    If you have any questions, let me know. Keep in mind that this is just a suggestion on my part. I use MSE and it has been able to prevent malware and also removing it.
    Thanks,
    eidnolb

  • Safari 7.1 does not display fonts correctly in youtube

    Since I upgraded to Safari 7.1 any YouTube videos do not display text or the time correctly. All of it looks like small boxes with a capital A in them. I found something on the forums the other day and I upgraded my Flash and I used Fusion Suitecase to clear font caches. That works for one session in Safari and I thought I had it fixed. The next session the same thing happened, so I cleared my font cache again, but it did not work. What am I to do. This is dumb! You get an upgrade and you have to run around trying to fix what it messed up. Never had this problem. BTW, Firefox displays everything correctly, but I don't like Firefox. Any help is appreciated.

    Hi ..
    Might be a third party font manager >  Re: All I see is the letter "a"
    If that's not the issue, check for duplicate fonts...
    Open Font Book located in your Applications folder.
    From the Font Book menu bar click Edit > Look for Enabled Duplicates
    If that doesn't help, it might be a third party font causing the capital A issue.
    From the Font Book menu bar click File >  Restore Standard Fonts
    message edited by:   CS

  • FF4 does not display formatting correctly in Google Docs

    The formatting of documents is not displayed correctly in Google Documents. For example table borders disappear. Document formatting is displayed correctly in IE9. Screenshot attached for reference
    http://i.imgur.com/d1JDS.png

    Hi hjcombs,
    We have seen issues in past with third party font management utility e.g. FontExplorer.
    For isolation purpose please try to disable/uninstall FontExplorer for momentary.
    If still you having issue then could you please provide us the screenshot of the problem.
    Regards,
    Sumit Singh

  • Spark ComboBox new item does not display in textInput?

    I've been playing with s:ComboBox and generally like them a lot. One detail is driving me nuts though - most likely due to my lack of knowledge in the subject - is that if I try to add a new item to my dataprovider in a changeHandler (registered to the change event) the text for the ComboBox textInput disappears - although the item addition works perfectly. Interestingly enough the same operation works fine if it gets called by clicking on a button, i.e. post the change event has been processed, and the text does not disappear. To better understand what I'm talking about check out the code from http://help.adobe.com/en_US/flex/using/WS70f0d54f063b9b081aac8d1d1247252e4a0-8000.html#WS7 0f0d54f063b9b08626480d2124725f692c-7fff
    and try to add a new item and hit enter. Taking the same code from myCB_changeHandler and using it as a button click event instead of a change event handler yields to the behavior I'm looking for, i.e. the new item appears in the CB textInput field and when clicking the button gets added to the data provider while not disappearing from the textInput. Is there a way to accomplish this same behavior in the change event handler?
    thank you!
    f

    thank you!
    that does the trick!
    f

  • Menu Items does not display after Making ARD file

    Hi Experts
    I have created a Addon Which has Five Menu Items. Three Items in Setup->Inventory and Two in Inventory->Inventory Transcation. It will woriking fine when I run my addon from Visual Studio directly But after created ARD file It does not show Menu items. There was no error during making ARD. I tried three times. But result is same it does not show any Menu Items. Plz suggest me Code is given below. I Use VB B1 AddOn Wizard for creating Menu Items This has a seprate addMenu.xml module.
    <Application>
      <Menus>
        <action type="add">
          <Menu Checked="0" Enabled="1" FatherUID="43540" Image="" Position="9" String="Bin-In" Type="1" UniqueID="AM_1" />
          <Menu Checked="0" Enabled="1" FatherUID="43540" Image="" Position="10" String="Bin-Out" Type="1" UniqueID="BINOUT" />
          <Menu Checked="0" Enabled="1" FatherUID="43540" Image="" Position="11" String="Intra-WH Movement" Type="1" UniqueID="INTRA_WH" />
          <Menu Checked="0" Enabled="1" FatherUID="11520" Image="" Position="12" String="Zones" Type="1" UniqueID="Zone" />
          <Menu Checked="0" Enabled="1" FatherUID="11520" Image="" Position="13" String="Bin AddOn Setup" Type="1" UniqueID="Setup" />
          </action>
      </Menus>
    </Application>
    Thanks
    Gorge

    Hi,
    Did you included the AddMenus.xml in the extra files when you generated the installer?
    The AddMenus.xml file needs to be in the same folder as the addon exe. If there is no AddMenus.xml file there is no error raised, B1DE thinks there are no menus to add.
    You have to include all extra files in the installer when you generate it.
    Hope it helps
    Trinidad.

  • Urgent Problem - Flash Player does not display movies correctly.

    Hi.
    I have an urgent problem that I need help with. I installed
    Flash Player 9 on my computer and everything was o.k. The I
    installed Flash 8 and it asked if I wanted to install the player
    and I selected yes. Then when I went on the Web, I noticed on my
    website that my Flash animations displayed only partially - none of
    the backgrounds appeared and were just plain white. This only
    occurs where the backgound is plain and not an animation. The weird
    thing is, when I open the file when I'm not on the Web, everything
    displays correctly. It's only when I'm on the Web that the problem
    occurs. I've tried uninstalling all the Flash versions and
    re-installing but that did not work. It is incredibly frustrating.
    Can someone please tell me why when I open files whilst not on the
    Web, they display correctly, but when I go to my website, the plain
    backgrounds do not appear in the movies ?. And more importantly,
    how do I fix this ?
    Thanks

    I've just been struggling with the problem for some hours and
    I finally solved it. What I had to do was, from Internet Explorer
    7, go to Internet Options then 'Advanced' then click 'Reset' to
    restore all defaults. After doing this the flash played correctly.
    I then had to re-configure Internet Explorer to perform to its
    previous style. I also went from 'Internet Options' to 'Programs'
    and then clicked 'Manage Add-Ons'. I found that by disabling the
    'Realplayer download and record plugin for Internet Explorer' the
    problem was solved, and when I enabled it, the problem reappeared.
    So it has obviously got something to do with this plugin. I hope
    this helps for anyone else who could suffer from this problem. It's
    worth a try if all else fails - simply reset Internet Explorer 7 to
    restore the defaults, and then find out what caused the problem.

  • Acrobat X Pro PDF Portfolio does not display video correctly

    Windows XP
    Acrobat X Pro
    SWF file, also SWF file converted to PDF
    I am trying to place an SWF file in a portfolio so that the first frame of the video will be visible as the user pages through the portfolio. All I see is a white screen. When I double-click it and then then click "open file" the PDF version at least plays fine. But I can't seem to get the preview to display correctly.
    Can anyone provide any help?
    Thanks!
    Anne Robotti

    A thread over in the Acrobat SDK Forum may be of interest to you.
    http://forums.adobe.com/message/1868669
    You may want to pose follow up questions to that forum.
    Be well...

  • Air does not display on Panasonic VIera with VGS and mini adaptor

    I have the mini vga adaptor and my air works on our Dell monitor, however when plugging it into our TV - Panasonic Viera around 4 years old LCD, nothing happens - ie you select PC and the screen is black. Our old powerbook used to work.
    Do I need to hit a button or set something up?

    If you mean the mirror icon it is because you need OS X 10.8 Mountain Lion so you will need to purchase it from the app store.  There is also a third party app called airparrot, www.airparrot.com.
    Jules

Maybe you are looking for

  • Geforce 6800 Ultra - output only video to TV

    I just bought a new Geforce 6800 Ultra and I'm a little confused about the settings for TV output via the s-video cable. Is it possible to have only the video I'm watching zoomed full screen on the TV? Currently I'm only able to get the desktop shown

  • Converting string to xml in xslt

    Hi we are trying to convert string to xml in xslt but it is getting errored out. We have followed the procedure mentioned at http://download.oracle.com/docs/cd/A91202_01/901_doc/appdev.901/a88894/adx04xsl.htm under the section "How Do I Convert A Str

  • ClassNotFoundException:com.microsoft.jdbc.sqlserver.SQLServerDriver

    Dear all i am using MSSQL2000 Driver for jdbc, i have set CLASSPATH to the driver install directory, compile passed, but when i run class, a ClassNotFoundException error occur: java.lang.ClassNotFoundException:com.microsoft.jdbc.sqlserver.SQLServerDr

  • Need to be within 3 feet of base station!

    I have just had broadband put in to my house and we have a Belkin High-Speed Mode Wireless G Router. Both my house mates, who are using Windows laptops are able to use wireless perfectly. However, my iBook G4 will only detect the base station if it i

  • Uninstalling Software version 4.6.0.14. Please help ASAP! I need to sync!

    I am trying to uninstall the Blackberry software but when I go to the Control Panel-Programs....it is not listed.  But it is on my Start Menu and I can open it.  How do I get it off so that I can install new software that came with my new phone. Jane