Skip to content
Permalink
Browse files

Resizable: using isNumber on isminw

  • Loading branch information
eduardolundgren committed Jan 27, 2009
1 parent dfef536 commit 671caddf94a3922489d22723812e1f80a884a54d
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.resizable.js
@@ -362,7 +362,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {

var el = this.helper, o = this.options, pRatio = this._aspectRatio || event.shiftKey, a = this.axis,
ismaxw = isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width), ismaxh = isNumber(data.height) && o.maxHeight && (o.maxHeight < data.height),
isminw = !isNaN(parseInt(data.width, 10)) && o.minWidth && (o.minWidth > data.width), isminh = isNumber(data.height) && o.minHeight && (o.minHeight > data.height);
isminw = isNumber(data.width) && o.minWidth && (o.minWidth > data.width), isminh = isNumber(data.height) && o.minHeight && (o.minHeight > data.height);

if (isminw) data.width = o.minWidth;
if (isminh) data.height = o.minHeight;

0 comments on commit 671cadd

Please sign in to comment.
You can’t perform that action at this time.