Fix #1152 On IE7 editing on dialog box is broken