Skip to main content

Bug Tracker

Side navigation

#2919 closed bug (fixed)

Opened May 21, 2008 11:00PM UTC

Closed July 11, 2010 06:52PM UTC

Helper:clone object in wrong position - example code included

Reported by: chrishandorf Owned by: paul
Priority: critical Milestone: 1.3
Component: ui Version: 1.2.5
Keywords: Cc:
Blocked by: Blocking:
Description

Load the code below into Firefox or Safari (there is no problem in I.E.).

Drag one of the links - everything works fine. Now resize the browser window so the scroll bar appears and use the scrollbar to scroll about half of the links off the top of the page. Now try dragging one of the remaining visible links and you will see the problem - the helper:clone object is no longer under the mouse but instead is many pixels below it. Depending on the size of your browser window the helper:clone may even be off of the bottom of the visible page giving the impression that the drag isn't working at all.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<body>
      <div class="link">Link 1</div>
      <div class="link">Link 2</div>
      <div class="link">Link 3</div>
      <div class="link">Link 4</div>
      <div class="link">Link 5</div>
      <div class="link">Link 6</div>
      <div class="link">Link 7</div>
      <div class="link">Link 8</div>
      <div class="link">Link 9</div>     
      <div class="link">Link 10</div>
      <div class="link">Link 11</div>
      <div class="link">Link 12</div>
      <div class="link">Link 13</div>
      <div class="link">Link 14</div>
      <div class="link">Link 15</div>
      <div class="link">Link 16</div>
      <div class="link">Link 17</div>
      <div class="link">Link 18</div>  
 
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br>

<script src="jquery-1.2.4b.js"       type="text/javascript"></script>
<script src="jquery.ui-all-1.5b4.js" type="text/javascript"></script>

<script type="text/javascript">
     $(".link").draggable({helper:"clone"});
</script>
</body>
</html>
Attachments (0)
Change History (2)

Changed June 03, 2008 09:57PM UTC by chrishandorf comment:1

I re-tested this with jquery-1.2.6 and jquery-ui-1.5RC1 and it looks like it has been fixed

Changed July 11, 2010 06:52PM UTC by dmethvin comment:2

resolution: → fixed
status: newclosed

This should be filed in the UI bug tracker if still relevant.

http://dev.jqueryui.com