[Mac] Fix size calculation issue for custom widgets

Custom widgets with content have to get their size from
the content.
Round widget coordinates when placing widgets

In toolkits like Cocoa, placing widgets on non-integer coordinates
makes the widget look blurry.