Refactored dialog offset code in dialog aligner.
Authored by: Dev 2009-07-10
Parent: [r36]
Child: [r38]