checking for width < 0 in onResizeRight