Fix modal / dialog centering.
Merge pull request #45 from Spinarooni/master

Fix modal / dialog not centering, fixes #44