resize board view according to window height