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

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

问题描述

我有一个问题,在Firefox 3.6,IE7-8的jQuery UI 1.7.2排序列表工作正常。当我向下滚动一点,助手元素似乎有一个相同的高度的偏移量,我
从鼠标指针向下滚动,这使得它不可能看到你最初开始拖动哪个项目。
如何解决这个问题或者解决这个问题?如果没有修复什么是一个非常好的替代可拖动插件?

以下是我可以排序的初始化参数。

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


解决方案

我看到这个问题,并能解决它通过删除我的网页上的一个包含div的CSS规则位置:相对。另请参阅: http: //forum.jquery.com/topic/sortable-offset-when-element-is-dragged-and-page-scrolled-down-ff


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?

Here are my initialization parameters for the sortable.

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

解决方案

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天全站免登陆