jQuery UI可调整大小的自定义句柄错误 [英] jquery ui resizable custom handle error

查看:91
本文介绍了jQuery UI可调整大小的自定义句柄错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用可调整大小的jQuery ui的自定义句柄,但是当我使用handles选项将jQuery引用传递给另一个元素时,它失败. Iv从文档和网络上的其他示例中读取的内容应该可以正常工作.

Im trying to get a custom handle work with jquery ui resizable widget, but when I use the handles option to pass in a jquery reference to another element, it fails. From what Iv read from the documentation and other examples on the web, this should work just fine.

<div class="layer">
<div class="left">left</div>
<div class="center">center</div>
<div class="right">right</div>
</div>
​
$('.layer').resizable({
    handles: {
        'e': $('.right')
    }
});
​

这是一个小提琴: http://jsfiddle.net/MatteS75/3dwVp/

推荐答案

这是一个最近已修复的错误:

This is a bug that has been fixed very recently:

http://bugs.jqueryui.com/ticket/8713

https://github.com/jquery/jquery-ui/commit/9b908878ae3a9c0fbbd9958b579f223a648 /a>

https://github.com/jquery/jquery-ui/commit/9b908878ae3a9c0fbbd9958b579f223a648c5c69

这篇关于jQuery UI可调整大小的自定义句柄错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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