Non modal dialog positionning

PORTAL-897 Fixed dynamic positioning based on viewport top and bottom edges
Fixed a bug where a checkmark could be shown multiple times on the checkbox and the radiobutton widgets.