Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Can UI positionable flip fit question

$
0
0
If you specify two different collision methods, the first refers to horizontal and the second to vertical. If you specify one, it will apply to both horizontal and vertical.

So "flip fit" means
- if the positionable has a collision horizontally, flip it to the other side of the target
- If the positionable has a collision vertically, nudge it up or down until the collision is resolved

And "fit flip" means
- if the positionable has a collision horizontally, nudge it left or right until the collision is resolved 
- If the positionable has a colission vertically, flip it to the other side of the target

It's important to note that if the "flip" is performed and there is still a collision, the algorithm will pick the side with the smalled collision. This means the un-flipped positioning may still be used because it has a smaller collision.


Viewing all articles
Browse latest Browse all 3491

Trending Articles