set toolbar and edit window pos when main window size is changed