public
Fork of sstephenson/prototype
Description: Prototype JavaScript framework
Homepage: http://prototypejs.org/
Clone URL: git://github.com/jdalton/prototype.git
Search Repo:
* Fix an issue where Element#getHeight returns null if the height is set 
to "auto."

(cherry picked from commit fa639f3f68f54d61e81f8b065281e73f4454cc92)
Tue May 06 13:23:09 -0700 2008
commit  bd8e8f16566033fc963d40a5e3d7f6989292a863
tree    0716704e05310a1b24d20aaf720388d481761e6a
parent  78f4b9900a70ed26f5610e50b3713083bd07f0e3
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+* Fix an issue where Element#getHeight returns null if the height is set to "auto." (kangax, jddalton)
0
+
0
 * Make Element#absolutize use Element#getDimensions to prevent certain failures in IE. (kangax, jddalton)
0
 
0
 * Fix Element#writeAttribute('encType', 'multipart/form-data') on dynamically created form elements in IE. (jddalton, kangax, NoiseEee)
...
387
388
389
390
 
391
392
393
...
387
388
389
 
390
391
392
393
0
@@ -387,7 +387,7 @@
0
     element = $(element);
0
     style = style == 'float' ? 'cssFloat' : style.camelize();
0
     var value = element.style[style];
0
- if (!value) {
0
+ if (!value || value == 'auto') {
0
       var css = document.defaultView.getComputedStyle(element, null);
0
       value = css ? css[style] : null;
0
     }

Comments

    No one has commented yet.