Changeset 17503 for extensions/Autosize/js/autosize.dimensions.js
- Timestamp:
- Aug 9, 2012, 8:35:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/autosize.dimensions.js
r17308 r17503 194 194 195 195 myposition = ""; 196 width = jQuery(elem).width(); 197 height = jQuery(elem).height(); 198 out_width = width; 199 out_height = height; 200 in_width = width; ; 201 in_height = height; 196 var myWidth = 0, myHeight = 0; 197 198 var xHeight = jQuery(document).height(); 199 var x2Height = jQuery(window).height(); 200 201 if (typeof (window.innerWidth) == 'number') { 202 //Non-IE 203 myWidth = window.innerWidth; 204 myHeight = window.innerHeight; 205 } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { 206 //IE 6+ in 'standards compliant mode' 207 myWidth = document.documentElement.clientWidth; 208 myHeight = document.documentElement.clientHeight; 209 } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { 210 //IE 4 compatible 211 myWidth = document.body.clientWidth; 212 myHeight = document.body.clientHeight; 213 } 214 215 if (myHeight != x2Height) { 216 width = myWidth; 217 } 218 219 width = myWidth; 220 height = myHeight; 221 out_width = myWidth; 222 out_height = myHeight; 223 in_width = myWidth; ; 224 in_height = myHeight; 202 225 203 226 } else {
Note: See TracChangeset
for help on using the changeset viewer.