ui thread/window not react to window size changes