bugfix for widget drawing when window has been scaled 
widget drawing now also works as expected in firefox.