bugfix: set toc/bookmark window dimension smaller than screen size to fix Toc crash in #815