public
Description: Prototype JavaScript framework
Homepage: http://prototypejs.org/
Clone URL: git://github.com/sstephenson/prototype.git
Make Element#getDimensions always use offset(Height|Width) rather than 
client(Height|Width).
Sun Jun 29 12:43:42 -0700 2008
commit  e3313cb75d24cedbbc85188e7c5c26ca8601397b
tree    bf39bbb992a83fb319dc243d0781c7bca796a35f
parent  05a1143f34471eaac5666e43dfae4c0fe56728ab
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+* Make Element#getDimensions always use offset(Height|Width) rather than client(Height|Width). [staaky, jddalton]
0
+
0
 * Make Function#argumentNames use Function.prototype.toString. [Garrett Smith, jddalton, kangax]
0
 
0
 * Rename variable in Form.Element.Serializers.select. [jddalton]
...
457
458
459
460
 
461
462
463
...
457
458
459
 
460
461
462
463
0
@@ -457,7 +457,7 @@ Element.Methods = {
0
       els.position = 'absolute';
0
       els.display = 'block';
0
       
0
- dimensions = { width: element.clientWidth, height: element.clientHeight };
0
+ dimensions = { width: element.offsetWidth, height: element.offsetHeight };
0
 
0
       els.display = originalDisplay;
0
       els.position = originalPosition;

Comments

    No one has commented yet.