Drag selecting a large number of items caused them to reorder in Outline panel.

Michael Magoon shared this problem 7 years ago
Solved

I am creating a modal dialog that has a number of states. I created all the individual labels, buttons, etc and then created a Dynamic panel so that I could move the dialog into it. When I drag selected all the items and tried to move them, the order of items changed (i.e what displays on top and then in the layers below it). At first I thought that I had accidentally deleted some of the items, but then when I looked at the Outline panel, I realized that some of the items were moved to a layer below my background (which is not transparent).


Every time that I select many objects it seems to do this. It is pretty annoying to have to reorder all my items every time I select many items.

Comments (7)

photo
1

The selected items are placed inside any dynamic panel that is below the mouse pointer when you release the mouse button. So maybe when you moved these items the cursor was above that dynamic panel you talk about. To avoid that move the elements using the arrow keys in your keyboard (tip: if you hold the 'shift' key and then press the arrows, the elements will move faster)

photo
1

I understand that, but it should not change the order of the items within the Outline panel, correct? It is quite possible, that the Dynamic Panel had nothing to do with it. I was just trying to explain what I was doing, in case it did.


I will keep testing to see if I can narrow down what is going on...

photo
1

I was able to replicate the previous issue. I am using Mac OS X.


See "Before selection" for screen cap of order of items before I selected them.


1) Using the Outline panel, Shift-Select many items (in this case they were within one panel of a Dynamic Panel).


2) Drag items to another location.


3) Selected items reverse order within Outline panel.


See "After_Select_Move" to see new order. Because the "Dialog_background" item has a white background, the items appear to disappear on the Canvas.


Note: When I try to replicate this issue without a Dynamic Panel, I cannot do so. This issue appears to be related to dragging many items into and out of a Dynamic Panel.


When I try to use the Arrow Key move method, I cannot move the selected items out of the Dynamic Panel. When an individual item hit the edge of the Dynamic Panel, it stops moving. See "After_arrow_key" for how it looks afterwards. f8ee69dae05c44ac620598cb9ace1a96

photo
1

Hi Michael,


Thanks for the step by step guide to reproduce the error. It has been filed in our bug tracking system and we'll tell you as soon as we know which update has this bug fixed.

photo
1

This bug persists in 6.0, at least on Mac OS X (10.9.4), but it seems to happen almost randomly...


Sometimes, pasting a group into, say, a dynamic panel reverses the order of all of the pre-existing items in the panel as viewed in the outline.


Sometimes, just opening a component in the outline in a newly-opened prototype shows its contents in the wrong order.


I haven't found a reliable way to trigger this backwards-sorting, but it happens very frequently: multiple times per editing session.


As a workaround (and it feels like I've said this on this forum before...), dragging the bottom-most item (of the incorrectly sorted items) to to the very top of the containing component seems to put things right, but it gets tiresome.

photo
1

After an extraordinarily long day with Justinmind today, I would be willing to say that items in groups/panels/etc come up in the wrong order far more often than they come up in the right order. Almost every time I open certain panels and groups, particularly if they are deeply nested, I find the "background" components in front of the foreground components.

photo
1

Some issues with the outline have been fixed for the next update. Hopefully, it will be ready in a couple of days. If after the update you find that it's still happening, please report.