center dialogs based on browser size (works better with phones)
Authored by: vproietti 2014-01-20
Parent: [r2185]
Child: [r2187]