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; }
Comments
Post a Comment