fixed bug:open the dialog in parent window couldn't close.
new features:move and resize could switch by config.