added a bounding box to the draggable area

modals are now bound to the window

fixes DAQ-588