How to set boundary limit for the component , so that it should be draggable and resizable within a container. Is there any way to achieve it