fix render when floating window is resized