jquery用户界面可排序“;重叠“;问题

jquery用户界面可排序“;重叠“;问题,jquery,html,jquery-ui,Jquery,Html,Jquery Ui,我正在使用jQueryUI的可排序函数和几个连接的列表。这些列表包含在可拖动、可调整大小的div中,div上有一个“overflow:auto”。当我将一个包含大量列表项(èli›)的div置于另一个div之上时,我遇到了一个问题 Top div包含很多li元素,这意味着它实际上比实际显示的要低得多。这意味着,当我移动底部div中的一个元素时,该元素将在顶部div的可排序列表(这不应该发生,因为它是隐藏的)和底部div的可排序列表之间跳跃,使其在两者之间闪烁 这是一个主要问题,因为用户很难将l

我正在使用jQueryUI的可排序函数和几个连接的列表。这些列表包含在可拖动、可调整大小的div中,div上有一个“overflow:auto”。当我将一个包含大量列表项(èli›)的div置于另一个div之上时,我遇到了一个问题

Top div包含很多li元素,这意味着它实际上比实际显示的要低得多。这意味着,当我移动底部div中的一个元素时,该元素将在顶部div的可排序列表(这不应该发生,因为它是隐藏的)和底部div的可排序列表之间跳跃,使其在两者之间闪烁

这是一个主要问题,因为用户很难将li放入正确的div中,如果他/她是这样放置他们的div的

我想要的是li只与它当前悬停在哪个div上的列表相连接

有人知道怎么解决这个问题吗

技术细节 下面的div作为示例:

<div style="height: 310px; width: 200px; z-index: 14; left: 909px; top: 215px; position: absolute;" class="Category ui-draggable ui-resizable p-resize-snap" id="cat883">
    <input type="hidden" value="310" id="hiddenHeight883" name="ctl00$MainContentPlaceHolder$hiddenHeight883"><div style="height: 20px;" class="CategoryHeader">
        <table style="table-layout: fixed;">
            <tbody><tr>
                <td style="width: 16px;"><a onclick="return ToggleLinks(&quot;883&quot;);" href="#">^</a></td><td class="categoryNameTD"><span class="categoryName">Games </span><span style="display: none;"><input type="checkbox" name="ctl00$MainContentPlaceHolder$cbxCat883" id="cbxCat883"></span></td><td style="width: 16px;"><a onclick="return Edit();" href="#">E</a></td>
            </tr>
        </tbody></table>
    </div><div style="height: 274px; overflow: auto; border-bottom: 1px dotted rgb(221, 221, 221);" id="catLinks883">
        <div class="CategoryLinks">
            <ul style="list-style-type: none; margin: 0px; padding: 0px;" class="drpList ui-sortable"><li style=""><div class="drpLink">
                <table style="width: 100%; table-layout: fixed;">
                    <tbody><tr>
                        <td style="width: 16px;"><img style="height: 16px; width: 16px;" alt="@" src="http://www.youtube.com/favicon.ico"></td><td style="overflow: hidden; white-space: nowrap;"><a target="_blank" href="http://www.youtube.com/" title="Youtube">Youtube</a></td><td style="width: 16px;"><span style="display: none;"><input type="checkbox" name="ctl00$MainContentPlaceHolder$cbx722" id="cbx722"></span></td>
                    </tr>
                </tbody></table>
            </div></li><li style=""><div class="drpLink">
                <table style="width: 100%; table-layout: fixed;">
                    <tbody><tr>
                        <td style="width: 16px;"><img style="height: 16px; width: 16px;" alt="@" src="http://www.metacritic.com/favicon.ico"></td><td style="overflow: hidden; white-space: nowrap;"><a target="_blank" href="http://www.metacritic.com/" title="Metacritic - Movie Reviews, TV Reviews, Game Re...">Metacritic - Movie Reviews, TV Reviews, Game Re...</a></td><td style="width: 16px;"><span style="display: none;"><input type="checkbox" name="ctl00$MainContentPlaceHolder$cbx710" id="cbx710"></span></td>
                    </tr>
                </tbody></table>
            </div></li><li style="display: list-item;"><div class="drpLink">
                <table style="width: 100%; table-layout: fixed;">
                    <tbody><tr>
                        <td style="width: 16px;"><img style="height: 16px; width: 16px;" alt="@" src="http://www.myspace.com/favicon.ico"></td><td style="overflow: hidden; white-space: nowrap;"><a target="_blank" href="http://www.myspace.com/" title="MySpace">MySpace</a></td><td style="width: 16px;"><span style="display: none;"><input type="checkbox" name="ctl00$MainContentPlaceHolder$cbx725" id="cbx725"></span></td>
                    </tr>
                </tbody></table>
            </div></li><li style=""><div class="drpLink">
                <table style="width: 100%; table-layout: fixed;">
                    <tbody><tr>
                        <td style="width: 16px;"><img style="height: 16px; width: 16px;" alt="@" src="http://www.fz.se/favicon.ico"></td><td style="overflow: hidden; white-space: nowrap;"><a target="_blank" href="http://www.fz.se/" title="FZ">FZ</a></td><td style="width: 16px;"><span style="display: none;"><input type="checkbox" name="ctl00$MainContentPlaceHolder$cbx707" id="cbx707"></span></td>
                    </tr>
                </tbody></table>
            </div></li><li style=""><div class="drpLink">
                <table style="width: 100%; table-layout: fixed;">
                    <tbody><tr>
                        <td style="width: 16px;"><img style="height: 16px; width: 16px;" alt="@" src="http://n4g.com/favicon.ico"></td><td style="overflow: hidden; white-space: nowrap;"><a target="_blank" href="http://n4g.com/" title="N4G.com : All the latest game news">N4G.com : All the latest game news</a></td><td style="width: 16px;"><span style="display: none;"><input type="checkbox" name="ctl00$MainContentPlaceHolder$cbx708" id="cbx708"></span></td>
                    </tr>
                </tbody></table>
            </div></li><li style=""><div class="drpLink">
                <table style="width: 100%; table-layout: fixed;">
                    <tbody><tr>
                        <td style="width: 16px;"><img style="height: 16px; width: 16px;" alt="@" src="http://www.facebook.com/favicon.ico"></td><td style="overflow: hidden; white-space: nowrap;"><a target="_blank" href="http://www.facebook.com/" title="Facebook">Facebook</a></td><td style="width: 16px;"><span style="display: none;"><input type="checkbox" name="ctl00$MainContentPlaceHolder$cbx724" id="cbx724"></span></td>
                    </tr>
                </tbody></table>
            </div></li><li style=""><div class="drpLink">
                <table style="width: 100%; table-layout: fixed;">
                    <tbody><tr>
                        <td style="width: 16px;"><img style="height: 16px; width: 16px;" alt="@" src="http://www.quakelive.com/favicon.ico"></td><td style="overflow: hidden; white-space: nowrap;"><a target="_blank" href="http://www.quakelive.com/" title="QUAKE LIVE">QUAKE LIVE</a></td><td style="width: 16px;"><span style="display: none;"><input type="checkbox" name="ctl00$MainContentPlaceHolder$cbx713" id="cbx713"></span></td>
                    </tr>
                </tbody></table>
            </div></li><li style=""><div class="drpLink">
                <table style="width: 100%; table-layout: fixed;">
                    <tbody><tr>
                        <td style="width: 16px;"><img style="height: 16px; width: 16px;" alt="@" src="http://lifehacker.com/favicon.ico"></td><td style="overflow: hidden; white-space: nowrap;"><a target="_blank" href="http://lifehacker.com/" title="Lifehacker, tips and downloads for getting thin...">Lifehacker, tips and downloads for getting thin...</a></td><td style="width: 16px;"><span style="display: none;"><input type="checkbox" name="ctl00$MainContentPlaceHolder$cbx721" id="cbx721"></span></td>
                    </tr>
                </tbody></table>
            </div></li><li style=""><div class="drpLink">
                <table style="width: 100%; table-layout: fixed;">
                    <tbody><tr>
                        <td style="width: 16px;"><img style="height: 16px; width: 16px;" alt="@" src="http://quicksilverscreen.com/favicon.ico"></td><td style="overflow: hidden; white-space: nowrap;"><a target="_blank" href="http://quicksilverscreen.com/" title="http://quicksilverscreen.com/">http://quicksilverscreen.com/</a></td><td style="width: 16px;"><span style="display: none;"><input type="checkbox" name="ctl00$MainContentPlaceHolder$cbx723" id="cbx723"></span></td>
                    </tr>
                </tbody></table>
            </div></li></ul>
        </div>
    </div>
<div class="ui-resizable-handle ui-resizable-e"></div><div class="ui-resizable-handle ui-resizable-s"></div><div class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se" style="z-index: 1001;"></div></div>

这似乎是一个与可排序列表的错误,我遇到了类似的问题

这个解决方案对我有效


你能把可排序列表的初始化包括在内吗?@Jeremy Battle:我已经更新了帖子@尽管如此,您的html有很多额外的复杂性,这可能是不必要的。看看这里:让我知道这是否是你正在寻找的行为。(很抱歉只使用了两个不同的图标,我不想复制一堆列表项…@Jeremy Battle:额外的东西有很多不同的原因(比图片上看起来更复杂),但是你的例子和我的一样有闪烁的问题。我使用的是Firefox 3.6顺便说一句@peterthegreat,很抱歉我误解了这个问题。这真是个令人难以置信的问题…我玩了一段时间,它真的不想正常工作。我实际上尝试了这个解决方案,但在我的情况下,它没有帮助。我最终创建了自己的版本。但如果有人遇到类似的情况,我会将此标记为答案。
$(".drpList").sortable({ handle: ".drpLink img", connectWith: ".drpList", tolerance: "pointer" });