jQuery UI resizable bug

来源:互联网 发布:梦幻西游淘宝卖祥瑞 编辑:程序博客网 时间:2024/05/29 07:58
一、resizable存在的bug

  jquery.ui.resizable aspectRatio在init后无法进行重新设置

  解决方法(修复代码):

       

var oldSetOption = $.ui.resizable.prototype._setOption;$.ui.resizable.prototype._setOption = function(key, value) {    oldSetOption.apply(this, arguments);    if (key === "aspectRatio") {        this._aspectRatio = !!value;    }};

转自:http://www.cnblogs.com/walls/p/4256736.html 

0 0