diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2009-01-27 06:40:31 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2009-01-27 06:40:31 +0000 |
commit | 671caddf94a3922489d22723812e1f80a884a54d (patch) | |
tree | 6f04ef11fb2ee06816a8b6f982e8a7260838436e /ui | |
parent | dfef53612c3f9b40c7e71badca0d8258b94ccf5d (diff) | |
download | jquery-ui-671caddf94a3922489d22723812e1f80a884a54d.tar.gz jquery-ui-671caddf94a3922489d22723812e1f80a884a54d.zip |
Resizable: using isNumber on isminw
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.resizable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index 1ee75b41f..60d966cc9 100644 --- a/ui/ui.resizable.js +++ b/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; |