Bug Tracker

Modify

Ticket #2305 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

svn draggable: containment fails if grid set

Reported by: tm Owned by: paul
Priority: major Milestone: 1.2.3
Component: ui Version: 1.2.2
Keywords: svn draggable containment grid Cc:
Blocking: Blocked by:

Description

The following code illustrates the bug:

<div style="position:absolute;top:50px;left:100px;width:210px;height:210px;background:#aaa">
<div id="test" style="position:absolute;left:0px;top:0px;width:40px;height:40px;background:#eee"></div>
</div>
<script type="text/javascript">
	$('#test').draggable({containment:'parent', grid:[40,40]});
</script>

Note that placing grid plugin(in draggable.ext.js) before containment plugin is not correct solution, because then grid can be lost.

Change History

comment:1 Changed 6 years ago by paul

  • need changed from Review to Commit
  • Status changed from new to assigned

This can only be solved by implementing a kind of priority stack. I will see what I can do, but it'll take some time.

comment:2 Changed 6 years ago by paul

  • Status changed from assigned to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.