fix #696 Resizable dialog prevents selection

This fixes the issue that was preventing the selection of the text in page after the dialog resize.