Ability to reorder z-index of boxes

Once Image as box background - #20 by pirijan ships →

It would be nice if you can click on a box to bring it to the front, allowing you to specify the order of boxes. This becomes more important with box backgrounds.

Right now you can’t reorder, so it solely depends on when you create the box. (Not technically true, the workaround is to lock the box, which will send to back).

1 Like

started working on this in currentBoxes port z-index methods from currentCards by pketh · Pull Request #604 · kinopio-club/kinopio-client · GitHub

1 Like

I realized if a box gets entirely covered by another’s background, you won’t be able to see or manipulated it. Might be better to always keep the box names and borders visible, even if it defies physics?

i think the same rules apply to cards so just having the z-index might be sufficient to make that not a problem irl

1 Like

Got a version of this working.

@pirijan helped me polish this up and added the corresponding documentation about the new Box.z attribute to the API-docs: Kinopio API

This is shipped now. :tada:

2 Likes