( offsets, width, height )
| 24 | _position = $.fn.position; |
| 25 | |
| 26 | function getOffsets( offsets, width, height ) { |
| 27 | return [ |
| 28 | parseInt( offsets[ 0 ], 10 ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ), |
| 29 | parseInt( offsets[ 1 ], 10 ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 ) |
| 30 | ]; |
| 31 | } |
| 32 | |
| 33 | function parseCss( element, property ) { |
| 34 | return parseInt( $.css( element, property ), 10 ) || 0; |
no test coverage detected