resize listener hack by backalleycoder