Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-7922

Dragging issue positions the drag UI on different place (or out of screen), scrolling broken

    XMLWordPrintable

Details

    Description

      JIRA 6.0 changed the css of the body tag to always show a scrollbar (overflow = visible, before overflow=auto). jquery ui sortable doesn't cope with this very well, and as a result the page scroll position isn't taken into account when calculating the position of the draggable helper.

      This can be fixed in jquery.ui.sortablejs:_getParentOffset. Change

      if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) {
      

      to

      if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && this.scrollParent[0] != document.body && $.ui.contains(this.scrollParent[0], this.offsetParent[0])) {
      

      Pre 6.0 the scrollParent was #document, in 6.0 its now <body>. This fixes the incorrectly positioned helper.

      But: this is only a hack and not sufficient to fix all other places where sortable falls over. In 6.0 page scrolling (when you place the draggable at the top/bottom of the screen) isn't kicking in anymore, so more work is required to fix and test everything

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              npetrov Nikolay Petrov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: