attempts to keep red box in bounds during drag resize