Measure the available width before rendering the drag container. Set the drag-container's max-width to the measured available width.