| @@ 4424-4443 (lines=20) @@ | ||
| 4421 | ||
| 4422 | }, |
|
| 4423 | ||
| 4424 | _adjustOffsetFromHelper: function(obj) { |
|
| 4425 | if (typeof obj === "string") { |
|
| 4426 | obj = obj.split(" "); |
|
| 4427 | } |
|
| 4428 | if ($.isArray(obj)) { |
|
| 4429 | obj = {left: +obj[0], top: +obj[1] || 0}; |
|
| 4430 | } |
|
| 4431 | if ("left" in obj) { |
|
| 4432 | this.offset.click.left = obj.left + this.margins.left; |
|
| 4433 | } |
|
| 4434 | if ("right" in obj) { |
|
| 4435 | this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; |
|
| 4436 | } |
|
| 4437 | if ("top" in obj) { |
|
| 4438 | this.offset.click.top = obj.top + this.margins.top; |
|
| 4439 | } |
|
| 4440 | if ("bottom" in obj) { |
|
| 4441 | this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; |
|
| 4442 | } |
|
| 4443 | }, |
|
| 4444 | ||
| 4445 | _getParentOffset: function() { |
|
| 4446 | ||
| @@ 1274-1293 (lines=20) @@ | ||
| 1271 | ||
| 1272 | }, |
|
| 1273 | ||
| 1274 | _adjustOffsetFromHelper: function(obj) { |
|
| 1275 | if (typeof obj === "string") { |
|
| 1276 | obj = obj.split(" "); |
|
| 1277 | } |
|
| 1278 | if ($.isArray(obj)) { |
|
| 1279 | obj = {left: +obj[0], top: +obj[1] || 0}; |
|
| 1280 | } |
|
| 1281 | if ("left" in obj) { |
|
| 1282 | this.offset.click.left = obj.left + this.margins.left; |
|
| 1283 | } |
|
| 1284 | if ("right" in obj) { |
|
| 1285 | this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; |
|
| 1286 | } |
|
| 1287 | if ("top" in obj) { |
|
| 1288 | this.offset.click.top = obj.top + this.margins.top; |
|
| 1289 | } |
|
| 1290 | if ("bottom" in obj) { |
|
| 1291 | this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; |
|
| 1292 | } |
|
| 1293 | }, |
|
| 1294 | ||
| 1295 | _getParentOffset: function() { |
|
| 1296 | ||