MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / getOffsets

Function getOffsets

lib/web/jquery.ui.position.js:26–31  ·  view source on GitHub ↗
( offsets, width, height )

Source from the content-addressed store, hash-verified

24 _position = $.fn.position;
25
26function 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
33function parseCss( element, property ) {
34 return parseInt( $.css( element, property ), 10 ) || 0;

Callers 1

Calls 2

parseIntFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected