javascript - jQuery UI Sortable Portlets Force right or left -


based off this example on jsfiddle, have identical. i'm trying come way when have empty space on right , able move left div right without being forced back.

i've tried following css:

$(function()      if( $(".portlet").css('left', '165px') ) {          $(".portlet").css('left', '51%');     } else {       $(".portlet").css('left', '1%');     } )}; 

just note i'm new jquery ui.

one simple way this, if doesn't interfere rest of layout, force height of sortable. this:

.sortable {   width: 200px;   float: left;   padding-bottom: 100px;   height: 600px; } 

http://jsfiddle.net/g6uraflf/1/


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -