Adjusts dialog's layout for grappelli.