Opened 9 years ago
Closed 9 years ago
#9636 closed bug (invalid)
Cloned helper doesn't recognize the windows scrollposition
Reported by: | devcon | Owned by: | devcon |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.draggable | Version: | 1.10.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello,
Code highlighting:
$(item).draggable({helper:"clone");
doesn't substract the windows scrollpostition (so the helper has the scrollpositionvalue on top of the current elementposition). I worked arround it with the following code for now:
Code highlighting:
$(item).draggable({ helper: function(){ var $helper = $(this).clone(); if($(window).scrollTop() > 0){ $helper.css({ marginTop: ($(window).scrollTop() * -1) + "px" }); } return $helper; } });
Change History (2)
comment:1 Changed 9 years ago by
Owner: | set to devcon |
---|---|
Status: | new → pending |
comment:2 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Hi devcon,
Thanks for taking the time to contribute to the jQuery UI project. In order to assess this ticket we need a reduced test case that shows the issue with the latest version of the library. You can use this as a starting point - http://jsfiddle.net/tj_vantoll/fwk8R/
Also please consult this list to make sure your issue has not already been reported.
Thanks.