Details
-
Bug
-
Resolution: Fixed
-
High
-
6.1.4
-
6.01
-
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
- is duplicated by
-
JSWSERVER-7952 Backlog future sprint drag broken
- Closed
- mentioned in
-
Wiki Page Loading...