Very bad bugfix for jQuery UI 1.11.3 , tested only for UI Dialog (I use custom package only with this component).
before:
_applyChanges: function () {
var props = {};
if (this.position.top !== this.prevPosition.top) {
props.top = this.position.top + "px";
}
if (this.position.left !== this.prevPosition.left) {
props.left = this.position.left + "px";
}
if (this.size.width !== this.prevSize.width) {
props.width = this.size.width + "px";
}
if (this.size.height !== this.prevSize.height) {
props.height = this.size.height + "px";
}
this.helper.css(props);
return props;
},
after:
_applyChanges: function () {
var props = {};
if (this.position.top !== this.prevPosition.top) {
props.top = this.position.top + "px";
}
if (this.position.left !== this.prevPosition.left) {
props.left = this.position.left + "px";
}
this.helper.css(props);
if (this.size.width !== this.prevSize.width) {
props.width = this.size.width + "px";
this.helper.width(this.size.width);
}
if (this.size.height !== this.prevSize.height) {
props.height = this.size.height + "px";
this.helper.height(this.size.height);
}
return props;
},
And in resize
if (sum && sum >= 0) {
style[prop] = sum || null;
}
changed to:
if (sum && sum >= 0) {
if($.inArray(prop,['width','height'])>=0){
el[prop](sum);
}else{
style[prop] = sum || null;
}
}