add window resize event & tag rect auto-resize