Fix buy that dialog or popup window doesn't deattach when screen rotate.