-\r
- setAuto: function(e,p) {\r
- if ( e.notAuto ) return;\r
-\r
- if ( p == "height" && e.scrollHeight != parseInt(jQuery.curCSS(e,p)) ) return;\r
- if ( p == "width" && e.scrollWidth != parseInt(jQuery.curCSS(e,p)) ) return;\r
-\r
- // Remember the original height\r
- var a = e.style[p];\r
-\r
- // Figure out the size of the height right now\r
- var o = jQuery.curCSS(e,p,1);\r
-\r
- if ( p == "height" && e.scrollHeight != o ||\r
- p == "width" && e.scrollWidth != o ) return;\r
-\r
- // Set the height to auto\r
- e.style[p] = e.currentStyle ? "" : "auto";\r
-\r
- // See what the size of "auto" is\r
- var n = jQuery.curCSS(e,p,1);\r
-\r
- // Revert back to the original size\r
- if ( o != n && n != "auto" ) {\r
- e.style[p] = a;\r
- e.notAuto = true;\r
- }\r
- },\r