Fix issue: dialog window out of parent window bounds.