jQuery UI 可排序滚动辅助元素抵消 Firefox 问题 [英] jQuery UI sortable scroll helper element offset Firefox issue

查看:22
本文介绍了jQuery UI 可排序滚动辅助元素抵消 Firefox 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Firefox 3.6 中的 jQuery UI 1.7.2 可排序列表有问题,IE7-8 工作正常.当我向下滚动一点时,辅助元素似乎具有与我相同高度的偏移量从鼠标指针向下滚动,这使得无法看到您最初开始拖动的项目.如何解决此问题或解决此问题?如果没有修复,什么是真正好的替代可拖动插件?

I have a problem with a jQuery UI 1.7.2 sortable list in Firefox 3.6, IE7-8 work fine. When I'm scrolled down a bit, the helper element seems to have an offset of the same height that I'm scrolled down from the mouse pointer which makes it impossible to see which item you originally started dragging. How do I fix this or work around the issue? If there is no fix what is a really good alternative drag-able plugin?

这是我的 sortable 初始化参数.

Here are my initialization parameters for the sortable.

$("#sortable").sortable( {placeholder: 'ui-state-highlight'  } );
$("#sortable").disableSelection();

推荐答案

我看到了这个问题,并且能够通过从我的页面上的一个包含 div 中删除 css 规则 position:relative 来解决它.另见:http://forum.jquery.com/topic/sortable-offset-when-element-is-dragged-and-page-scrolled-down-ff

I was seeing this issue and was able to solve it by removing the css rule position:relative from one of the containing divs on my page. See also: http://forum.jquery.com/topic/sortable-offset-when-element-is-dragged-and-page-scrolled-down-ff

这篇关于jQuery UI 可排序滚动辅助元素抵消 Firefox 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆