fixes #1785 The log window is too short in the pop-up

Fixed the issue and committed code for review, please check it.