Bug 1016368 - STK Dialogs new layout

I would have hope that there is a better way to calculate that :/