2

I'm using jquery-ui sortable in a boostrap3 grid layout:

<section class="slice">
    <div class="container">
        <div class="row" id="blockcontainer">
            <div class="block col-md-3">A</div> 
            <div class="block col-md-3">B</div> 
            <div class="block col-md-3">C</div> 
            <div class="block col-md-3">D</div> 
            <div class="block col-md-12 pull-left">E</div>  
        </div>
    </div>
</section>   

Here is the JSFiddle: http://jsfiddle.net/99on7Lyt/show/

When I drag&drop the last col-md (D in the example) it starts moving in a wrong position, from the second row instead of the upper right corner. All other cols works fine. How can i fix?

Edit: The bug is only on Firefox.

1 Answer 1

4
+50

Try to add a padding on blockcontainer id:

#blockcontainer{
       padding:5px;    
}

Here is the jsfiddle with the fix: http://jsfiddle.net/99on7Lyt/9/show/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.