[fixed] html shifting when dialog touches the border of the window