Unfortunately, the ui.sortable code that sets the width of your helper does not account for the width of the class as indicated. I am using jQuery 1.8.x and stumbled upon the same behavior. Looking at the source code, I saw that ui.sortable checks if the width style is specified in the element, and if not, it is set by the width of the first element in the sortable one. My solution was to explicitly set the width and height for the helper using the form of the drag-and-drop helper option function.
$('#draggable').draggable({ helper: function() { var helper = $(this).clone();
These values โโdo not have to be hardcoded. For example, you could copy them from another element. But they must be installed on the auxiliary element itself (not inherited).
source share