fixed a bug where chatBox + textTool shared the same variable, do initial windowResize at the very end of initialize