Dragging and dropping an item within horizontalList does not display correctly

It appears that when I drag an item from a HorizontalList to another location within the same HorizonList, it does not display the images correctly. In my HorizontalList, I have an itemRenderer that shows the thumbnail image of the item.  I have about half a dozen items in the list and when I drag the sixth item and move to the beginning of the list, the display looks as if the first and the sixth element are switched, while in reality the resulting dataProvider array seems to have the right order, meaning the sixth element became the first element and the first element became the second element and so on. Has any one seen such a behavior and how do I rectify this? Thanks in advance. Cheers, Ramesh
The HorizontalList def is
<mx:HorizontalList id="myList" width="92%" height="100%" columnWidth="90" rowHeight="105" rollOverColor="#f26722"
                    itemRenderer="com.myListRenderer" labelField="name" dataProvider="{arr}" columnCount="10"
                    click="updateView(event)" dragEnabled="true" dropEnabled="true" dragMoveEnabled="true" >
</mx:HorizontalList>
The renderer code is
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalScrollPolicy="off" verticalScrollPolicy="off" horizontalAlign="center"
        verticalAlign="middle" width="90" height="90" verticalGap="0" creationComplete="init()" >
<mx:Script>
    <![CDATA[
        private function init():void {
            imageFile.source = data.url;
            imageName.text = data.name;
    ]]>
</mx:Script>
    <mx:Image id="imageFile" scaleContent="true" width="90" height="70" horizontalAlign="center" verticalAlign="middle"/>
    <mx:Label id="imageName" height="18" width="90" textAlign="left"/>
</mx:VBox>

Hi Alex,
In your blogpost on itemRenderers, you discussed something relevant in a brief section on "Background color changes when data changes". However, I could not find any reference for use on dataChange event handler. Can you pelase point me to the right article?
Implementing dataChange event instead of creationComplete did not solve my issue. I still had the issue. Thanks, Ramesh

Similar Messages

  • Drag and drop activities from component palette does not work properly

    I have problems with dragging and droping activities from component palette to bpel designer. I follow an sample to combine BPEL proces with Business role engine and try to drop decide activity bellow receiveInput activity but it is not picked up. Clicking on receiveInput activity and chosing with right mouse buttom insert after, decide activity is not in selection choise.

    Hi,
    I don't know what is causing the problem, but I have been able to avoid it by starting Jdeveloper from $home\jdev\bin\jdev.exe.
    Regards,
    Mathias

  • Drag and Drop example porting to Linux does not work

    Hi Guys,
    Encountered this problem : I have a JFrame that displays the name and path of a file that is dragged from a Windows(Explorer) environment into the frame. This works seamlessly in Windows. However, porting to Linux and doing the same thing(dragging the file from File Manager into the Frame to display the file name and path) does not work.
    I suspect the case may be something to do with the flavormap.properties file found in the jdk1.xx/jre/lib file. Can anyone help?
    RG

    Hi,
    I don't know what is causing the problem, but I have been able to avoid it by starting Jdeveloper from $home\jdev\bin\jdev.exe.
    Regards,
    Mathias

  • In iPhoto (09) I can add a description to a photo which will display when running the slideshow, however when I sync the Album to my iPad and I run slideshow the description does not display, WHY?

    In iPhoto (09) I can add a description to a photo which will display when running the slideshow, however when I sync the Album to my iPad and I run slideshow the description does not display, WHY?

    I'd ask that on the iPad forum.

  • I just upgraded to Mavericks and suddenly youtube does not display correctly although other sites work fine. I am using the newest MacBook Air. Any suggestions?

    I just upgraded to Mavericks and suddenly youtube does not display correctly although other sites work fine. I am using the newest MacBook Air. Any suggestions?

    Hi ..
    Open System Preferences > Flash Player then select the Advanced tab.
    Click Delete All under Browsing Data and Settings
    Back to Safari. Press Command + Option + E to empty the Safari cache.
    Quit and relaunch Safari, try a video.

  • Main Viewer Window does not display correctly

    Ever since I upgraded to Aperture 3.3 through 3.4.1, the main viewer window does not display correctly.  Everything is justified to the right of the screen.  When viewing images, the are not in teh center, they are over to the right.  I can't even see the import controls when trying to import... actually I can't even press the import button or add metada.  I am really in a bad position here.  Need help with this... anyone out there have a solution please?  my clients are waiting for their photos.  Yikes!
    Right justified?
    No Import Controls?
    Faces -  Everything displayed in a single row, runs off the end of the right side of the screen

    Have a read through this page and follow the directions to delete your application preferences,
    Let us know how you go.
    Tony
    http://support.apple.com/kb/HT3805
    Message was edited by: Tony Gay

  • Oops - spry menu bar 2.0 does not display correctly when loaded

    Oops - obviously I'm new at this. I think I got my graphics loaded now.
    Dear Sirs:
    I notice bzz31 had a pretty complicated post, so perhaps someone can help me with my complicated problem that has been vexing me for months. I tried the Spry Menu Bar 1.0, but it was impossible for me to edit, and I was delighted to see Spry Menu Bar 2.0 come out. However the 2.0 version has been frustrating me as well.
    I can get my menu bar to display properly in Live View, as shown below.
    However when I load everything onto the server, the menu bar does not display correctly, as shown below:
    I don't quite understand the code "file:///" but I interpret it to mean that the Spry-UI-1.7 folder is in the topmost folder of MacPro5-Docs, which is my hard drive. Here's the code I'm having trouble with:
    Here's my computer directory, shown below:
    Since my index file is two folders down from Spry-UI-1.7, I loaded the files onto the server similarly, as shown in the next three pictures:
    (The picture below is the same as the one just above, but now you can see the path from index to Spry-UI-1.7.)
    I would be most appreciative if someone can help me.
    Thank you.

    Have a look at the following links
    <script src="file:///MacProG5-Docs/Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
    <script src="file:///MacProG5-Docs/Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
    <script src="file:///MacProG5-Docs/Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
    <script src="file:///MacProG5-Docs/Spry-UI-1.7/includes/SpryMenu.js" type="text/javascript"></script>
    <script src="file:///MacProG5-Docs/Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarKeyNavigationPlugin.js" type="text/javascript"></script>
    <script src="file:///MacProG5-Docs/Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarIEWorkaroundsPlugin.js" type="text/javascript"></script>
    <link href="file:///MacProG5-Docs/Spry-UI-1.7/css/Menu/basic/SpryMenuBasic.css" rel="stylesheet" type="text/css" />
    Each of the above points to a file on your local system and cannot be found by the remote server.
    Replace the red coloured parts with http://www.twhsbands.org/ will remedy the situation.
    You also have some remnants of the other SpryMenuBar that should be removed from your markup.
    Gramps
    Wel, so much for the red coloured parts, they did not show up.
    The red coloured parts read file:///MacProG5-Docs/

  • How can I drag and drop an item from one Tree control to another in LabVIEW 7.1?

    You can use the mouse up and down event on the two tree controls but the problem is making the correct selection in the second tree control. I want to be able to switch over to the selection bar of the second tree control so that I can place my item in the correct position. I know all possible workarounds with double-clicks and so on... but I really want a windows drag and drop.
    This is what I have for the moment. Please check the library below. I need to activate the selection bar of the second tree control somehow to get the position in the control. The VI below is written in LV 7.1
    Attachments:
    Drag&Drop.llb ‏65 KB

    Hi Jones,
    As far as I know this feature is currently not supported by the Tree control. A workaround, would be to use the vertical position of the mouse in the button up event to determine what line you�re dropping the item.
    If you would like the Tree control to include the drag and drop feature, please submit this as a Product Suggestion under the feedback at www.ni.com/contact.
    Good luck!
    Best regards,
    Philip C.
    Applications Engineer
    National Instruments
    www.ni.com/ask
    - Philip Courtois, Thinkbot Solutions

  • Drag and Drop UI Items vb net

    Hi everybody.
    This is my question:
    I need to use drag and drop onto an item, i really don't have any idea how to do this, if anybody can tell me something i'll be very thankful.
    I'm working with visual basic .net and SBO 2007

    Victor,
    Currently you do not have access to the Drag & Drop functionality of SAP Business One using the SAP Business One SDK.
    Apologies,
    Eddy

  • Drag and drop multiple items

    Hi,
    I am trying to do a drag and drop where the droppable area will accept all of the drops as long as they are within the box. For some reason, it sometimes only accepts one, and other times accepts all, only if they are right on top of each other. Any help would be greatly appreciated!
    This is the drag and drop portion of the code:
    $(".drop").droppable({ accept: '.C'});
    $(".C").draggable({revert: 'invalid'});
    Files Here:https://www.dropbox.com/s/ynjd5vans42k56u/testtime.zip?dl=0

    Does this help?
    drag-and-drop utility for Edge Animate(only x-axis)

  • Drag and Drop different nodes within a JTree

    I have a JTree that represents a hierarchical object. Within the tree are different nodes representing different objects, each within a container,
    For Example:
    A
    -B container
    -- B NodeObject
    -- B NodeObject
    -C Container
    -- C NodeObject
    -- C NodeObject
    I have got the drag and drop working but as the gesture listener is on the actual JTree object it allows me to drag any object to any other place.
    What i want to be able to do is to force the drag and drop to allow only objects of type C to be put in the C container, etc and to reject any moves
    over other containers.
    As TreeNodes are not Components how do i force this behaviour?
    If i have to i can force the behaviour after the mouse has been released but I would prefer it if Swing would show the correct mouse over icons
    when I put an object over the wrong container.
    Thanks
    Dan Alford

    When you drag get the [x,y] mouse position and use the JTree method:
    getRowForLocation(x, y) for node you at the also for the parent node location of the child node.
    Once the childY is less than childParentY, you stop the drag.
    Hope that helps?

  • Upgrade to 3.1.1 broke drag and drop form items

    after upgrading to 3.1.1 when I click the drag and drop icon in items on a form i can then move the fields around and when I hit next the page shows no fields, if I then click apply and look at the form the fields have not moved..

    Hello,
    For me this functionality is still working...
    Do you have the same in another browser? (I'm using FF)
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • Why can I drag and drop from Photos to Pages, but not to Microsoft Word 2011

    I'm unable, under OS X 10.10.3, to drag and drop pictures from Photo into Word for Mac 2011.  I can paste from Photos into Pages.  How can I add Word to the list of programs that can take pasted photos pasted from Photos

    Drag and Drop support is done programmatically as part of the application design. There is no user settable configuration, or list of programs that you can add Word too. Apple has supported drag and drop in Pages for a long time, and from iPhoto or Aperture picture libraries. Microsoft chose another path.
    I don't have Office for Mac 2011, but I can state that Word 15.8.1 in Office for Mac 2015 Preview does not accept drag/drop of images from Photos either. It compensates by offering Insert ▸ Pictures ▸ Photo Browser… and when selected, displays an image panel not unlike Pages offers when clicking images from its Toolbar. At the top of this Word Preview panel is the Photos logo. It is from this Photos browser panel, that Word Preview accepts drag/drop of images. It may be that way in Word in Office for Mac 2011 too.

  • Drag and drop documents to Lync 2013 message not working

    I have searched the forum and can't find a reference to my specific issue.  With Lync 2010, I could drag and drop a word document or an excel spreadsheet into the message box.  The recipient would get a message to click on the document to retrieve
    it.  When I do this with Lynch 2013, all that displays in the message is an icon for a word document or an excel spreadsheet . . . the recipient does not receive an actual document that can be opened.
    How do I get Lync 2013 to allow for dragging/dropping like Lync 2010 supported?
    Thanks!

    Hi lac55,
    You can right click the icon, it will prompt you to download the file and the file will be saved under “C:\Users\xxx \Documents\My Received Files”.
    Best regards,
    Eric
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Why can I drag and drop a file into A3, but not import it?

    With A2+ I've scanned images (Epson flatbed) and imported them as TIFF, JPG, PNG, whatever.
    Same scanner, software, and A3 refuses to import any of the above formats. However, I can drag and drop the image on a project and it works.
    Any ideas? I looked for relevant threads but didn't see any immediately.
    Thanks

    Image appears in import pane; I can assign metadata, click "import," wait about 10 seconds and it says "import completed with errors," though the file doesn't show up in project.
    I have to say it's inconsistent. I just spend 20 minutes trying to import a one scan in PNG, TIF, JPG formats, and eventually gave up and dragged it in as TIF.
    Just now, I tried importing it into a different A3 project, and the TIF worked. However the PNG (which I didn't drag into A3, still gives the above error.
    I can live with this as long as drag and drop works, but seems like a bug.

Maybe you are looking for