fixed a bug where global padding was not respected in layout
layout: revised private function for placing widgets
size() and position() are set in grid units now
fixes to pinned layouting
implemented custom pui (overlay size)