Automatic containment method

Automatically picks best containment method depending on the zoom scale.
When zoomed out element is contained normally in the parent, but when zoomed in containement behaviour is same as 'invert'.