Skip to main content

Search and Top Navigation

#9636 closed bug (invalid)

Opened October 28, 2013 02:03PM UTC

Closed November 12, 2013 08:39AM UTC

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,

#!div style="font-size: 80%"
Code highlighting:
  {{{#!js
$(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:

#!div style="font-size: 80%"
Code highlighting:
  {{{#!js
                        $(item).draggable({
                            helper: function(){

                                var $helper = $(this).clone();

                                if($(window).scrollTop() > 0){
                                    $helper.css({
                                        marginTop: ($(window).scrollTop() * -1) + "px"
                                    });
                                }


                                return $helper;
                            }

                        });
  

}}}

Attachments (0)
Change History (2)

Changed October 28, 2013 07:14PM UTC by tj.vantoll comment:1

owner: → devcon
status: newpending

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.

Changed November 12, 2013 08:39AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

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!