This demo shows how
resolving collisions
is handled. Drag the taskbars around to get the feel.
Resolving collisions works on principle in which
taskbars dropped first on given edge has higher precedence and takes
space from taskbars dropped later on neighbouring edges.