Is it possible to dynamically position outlet?


I’m trying to build a grid layout like iTunes, where the resource is rendered below the row of the clicked thumbnail and above the next row.

Right now I have an ImageView class which, when the resource is inserted into the outlet, moves the outlet content into position via some jQuery inside didIinsertElement. This is pretty hacky, not to mention it pulls the resource markup out of its containing metamorph tags.

Has anyone tried something like this?


I do not know iTunes that well so what kind of operations are involved in the didInsert method?

If it is “just” changing markup, try to model it based on controller state with conditionals.