setTimeout() in Dialog#show() may cause miscalculation of dialog position

see commit message.