In Nifty, how do I move an element to the front/top of the stack?
E.g. how can I make an element be drawn in front of the other elements (dynamically from Java, e.g. when I click on it)?
I couldn’t find any z-index or similar and it seems elements are rendered in the order they are defined in the xml and then dynamically added elements outside of those are added on top.
One way I found made an element move to the front is to move it to a popup and then back (like draggables), though this seems a little much to do to just bring an element to the front.
I tried just using markForMove to the same parent, but this didn’t seem to work.
Does anyone know of another way?