Let floating window move up with shorter window height.