comparison client/digitallibrary/jquery/jquery-1.5.1.js @ 874:f4ea9703008f jquery

testing with jQuery 1.5.1, porting my offset bugfix
author hertzhaft
date Thu, 17 Mar 2011 21:06:54 +0100
parents 64bc340bea45
children
comparison
equal deleted inserted replaced
873:99a0c078d378 874:f4ea9703008f
8129 // need to be able to calculate position if either top or left is auto and position is absolute 8129 // need to be able to calculate position if either top or left is auto and position is absolute
8130 if ( calculatePosition ) { 8130 if ( calculatePosition ) {
8131 curPosition = curElem.position(); 8131 curPosition = curElem.position();
8132 } 8132 }
8133 8133
8134 curTop = calculatePosition ? curPosition.top : parseInt( curCSSTop, 10 ) || 0; 8134 curTop = calculatePosition ? curPosition.top : parseFloat( curCSSTop, 10 ) || 0;
8135 curLeft = calculatePosition ? curPosition.left : parseInt( curCSSLeft, 10 ) || 0; 8135 curLeft = calculatePosition ? curPosition.left : parseFloat( curCSSLeft, 10 ) || 0;
8136 8136
8137 if ( jQuery.isFunction( options ) ) { 8137 if ( jQuery.isFunction( options ) ) {
8138 options = options.call( elem, i, curOffset ); 8138 options = options.call( elem, i, curOffset );
8139 } 8139 }
8140 8140