Changeset 612443
- Timestamp:
- 10/14/2012 10:38:59 PM (13 years ago)
- File:
-
- 1 edited
-
glass/trunk/glass.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
glass/trunk/glass.js
r612358 r612443 573 573 my.bboxLeft = absoluteX; 574 574 my.bboxTop = absoluteY; 575 my.bboxRight = imageX + clientWidth; 576 my.bboxBottom = imageY + clientHeight; 577 578 my.lowres.trueWidth = clientWidth - paddingLeft - paddingRight; 579 my.lowres.trueHeight = clientHeight - paddingTop - paddingBottom; 580 575 if (navigator.userAgent.search(/msie/i) > 0) { 576 // IE goes against the standard. 577 my.bboxRight = imageX + clientWidth + paddingLeft + paddingRight; 578 my.bboxBottom = imageY + clientHeight + paddingTop + paddingBottom; 579 my.lowres.trueWidth = clientWidth; 580 my.lowres.trueHeight = clientHeight; 581 } else { 582 // Standard way is to inlcude the padding in clientWidth/Height. 583 my.bboxRight = imageX + clientWidth; 584 my.bboxBottom = imageY + clientHeight; 585 my.lowres.trueWidth = clientWidth - paddingLeft - paddingRight; 586 my.lowres.trueHeight = clientHeight - paddingTop - paddingBottom; 587 } 581 588 } 582 589 // Flag refresh to calculate the scale, wipe the background. … … 1111 1118 for (var s in gGlassRimSizeArray) 1112 1119 glassCreateDummyImage(gGlassRimPath + 'spy' + gGlassRimSizeArray[s] 1113 + '.png');1120 + '.png'); 1114 1121 } 1115 1122 else { // Preload all the rims. … … 1189 1196 } 1190 1197 } 1191
Note: See TracChangeset
for help on using the changeset viewer.