do not set resize handler in fullscreen mode (seems to produce incorrect results)