Click here to Skip to main content
15,896,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I've got a punch of bootstrap panels inside of some columns. Now I'm trying to arrange this panels using jquery sortable but I can not bring it to work correctly.

see the jsfiddle: Edit fiddle - JSFiddle

My issue: If I drag a panel in the left hand an drop it to the right everything works great. But after that I want to be able to drag a panel from the right side back to the empty column on the left side but even the placeholder won't go to the left side.

I've set the
CSS
padding-top: 10px
property of the columns to actually leave them in the empty space.

My javascript looks like this:

JavaScript
$("#container-wrapper").sortable({
  connectWith: ".connectedSort",
  items: "div.panel",
  tolerance: 'pointer',
  revert: true,
  placeholder: 'placeholder',
  forceHelperSize: true,
  zIndex: 9999
}).disableSelection();
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900