Floating window - resize and position check