aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Offset: account for scroll when calculating position"Oleg Gaidarenko2016-02-091-5/+2
| | | | | | | | | | | | This reverts commit 0654711e0d929187249ca9507ae5881c72947843. This commit provoked new issues: gh-2836, gh-2828. At the meeting, we decided to revert offending commit (in all three branches - 2.2-stable, 1.12-stable and master) and tackle this issue in 3.x. Fixes gh-2828
* Effects: add back support.shrinkWrapBlocks() for ie6Timmy Willison2016-01-061-4/+2
|
* Revert "Offset: simplify jQuery#offsetParent method"Timmy Willison2016-01-061-13/+3
| | | | This reverts commit 96447575c23f7b313091750ed84cec05db3a25c6.
* Revert "Misc: Drop support for older browsers; update support comments"Timmy Willison2016-01-061-1/+5
| | | | This reverts commit 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278.
* Revert "Offset: Fix .offset() to correctly work with ShadowDOM"Oleg Gaidarenko2015-12-221-24/+11
| | | | This reverts commit d4dd548acaf049d8e4dca9e4b879a51f26bb3d27.
* Revert "Offset: remove ownerDocument check in offset getter"Oleg Gaidarenko2015-12-221-5/+4
| | | | This reverts commit a2386a8250c82e27680d21f7f6fd1eb9a8f7e938.
* Revert "Offset: allow offset setter to throw for disconnected elements"Oleg Gaidarenko2015-12-221-1/+1
| | | | This reverts commit dc49f62f22a90ba95bbd1b659bfdae905adb4dd8.
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-13/+17
| | | | | Ref 10fdad742a2a6aa9f0e00b3e04fc5264797c53c7 Fixes gh-2056
* Core: Support non-browser environmentsMichał Gołębiowski2015-08-161-1/+3
| | | | | | | | | | | | Fixes gh-2133 Fixes gh-2501 Closes gh-2504 Refs gh-1950 Refs gh-1949 Refs gh-2397 Refs gh-1537 Refs gh-2504 Refs 842958e7aecd0d75a7ee9e2aaec83457701aa2f3
* Core: Adjust comments & tests after dropping Safari 6 supportMichał Gołębiowski2015-07-271-0/+1
| | | | | | | | | | Support comments that mentioned only Safari < 7 were checked & updated to account for bugs existing in newer versions as well; Safari 6 support test results were removed. (cherry-picked from 93bee4701d14202045a88aab156da0daf9418430) Refs gh-2482
* Offset: add tests for hidden elements + scrollTimmy Willison2015-06-161-7/+13
| | | | | - Also add comments to hidden/disconnected tests noting this is to ensure consistency between branches
* Offset: getBounding doesn't return width/height in IE8. Fixes test.Timmy Willison2015-06-161-14/+7
|
* Offset: no need to check for ownerDocumentTimmy Willison2015-06-161-4/+4
|
* Offset: revert to jQuery.contains for IE8's sake (compat only)Timmy Willison2015-06-161-7/+10
| | | | - getClientRects() throws on disconnected elements in IE8 only
* Offset: return before getBoundingClientRect to avoid error in IE8-11Timmy Willison2015-06-161-2/+9
|
* Offset: return zeros for disconnected/hidden elementsTimmy Willison2015-06-161-1/+4
| | | | | Fixes gh-2310 Close gh-2396
* Revert "Offset: allow offset setter to throw for disconnected elements"Timmy Willison2015-06-161-1/+1
| | | | This reverts commit 0d11c1182f2012cd6eb06ce1e3fa5a495af9bee3.
* Offset: account for scroll when calculating positionRichard McDaniel2015-05-121-2/+5
| | | | | Fixes gh-1708 Close gh-1714
* Offset: allow offset setter to throw for disconnected elementsTimmy Willison2015-05-051-1/+1
| | | | Fixes gh-2114
* Offset: remove ownerDocument check in offset getterTimmy Willison2015-05-051-4/+5
| | | | Fixes gh-2115
* Offset: Fix .offset() to correctly work with ShadowDOMArthur Stolyar2015-05-051-14/+14
| | | | | Fixes gh-1784 Close gh-2043
* Offset: simplify jQuery#offsetParent methodOleg Gaidarenko2015-01-131-3/+13
| | | | | | | | | | | | * It seems, check for html element (and previously for body element) was redundant * Simplify "return" statement * Add comment about potential errors that didn't find themselves in real life app Ref 74ae5444832b2fb966768a97281d2ad8c088bc58
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-12-081-5/+1
| | | | | | | | | | That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks for old Blackberry. Fixes gh-1836 Fixes gh-1701 Refs gh-1815 Refs gh-1820
* Dimensions: allow modification of coordinates argumentOleg Gaidarenko2014-11-161-1/+3
| | | | Ref f7e60dc83d81cbf892de9dab39642dd67c49bd23
* Core: Drop strundefined variableChris Antaki2014-09-021-3/+2
| | | | | Ref 29838b6cab6f2e508f3e9692f32918c72b1a504b Closes gh-1628
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-171-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: build/tasks/build.js src/ajax/xhr.js src/attributes/classes.js src/attributes/prop.js src/attributes/val.js src/core/init.js src/core/ready.js src/css.js src/css/curCSS.js src/css/defaultDisplay.js src/data.js src/data/var/dataPriv.js src/data/var/dataUser.js src/dimensions.js src/effects.js src/event.js src/manipulation.js src/offset.js src/queue.js src/selector-native.js test/data/testrunner.js
* Offset: Fix comment typo, thanks @AurelioDeRosaDave Methvin2013-12-181-1/+1
|
* Fix some code style inconsistenciesOleg2013-11-071-3/+3
|
* Fixes #14450. Remove CommonJS+AMD syntax.Timmy Willison2013-10-151-15/+18
| | | | | | | | | | | | - To keep file size unaffected, an extra pragma was added to build.js to remove certain lines when building with special comments. Conflicts: src/core.js src/css.js src/effects.js src/event.js src/manipulation.js src/offset.js
* The cssHook from addGetHookIf wasn't actually getting addedTimmy Willison2013-09-111-1/+1
| | | | | Conflicts: src/css.js
* Remove offset dependency from css. Move curCSS and getStyles to their own ↵Timmy Willison2013-09-101-10/+33
| | | | module.
* Separate jQuery.fn.init into its own module (for lighter core dependencies ↵Timmy Willison2013-09-091-0/+1
| | | | | | | | | | across all modules). Restore proper support property for effects. Conflicts: src/attributes/classes.js src/core.js src/manipulation.js src/traversing.js
* Apply consistent ordering in all modules. -219 bytes. Order modules like ↵Timmy Willison2013-09-091-49/+46
| | | | functions > jQuery.extend > jQuery.fn.extend.
* Break jQuery.access out into its own module to separate it from core; Adjust ↵Timmy Willison2013-09-091-2/+3
| | | | | | | | | | | | | CommonJS+AMD build support to include non-var dependencies. Convert modules with more than a few dependencies to use CJS+AMD syntax. Conflicts: src/core.js src/css.js src/data.js src/effects.js src/event.js src/manipulation.js src/traversing.js
* Always return jQuery in modules that can be included separatelyTimmy Willison2013-09-081-0/+1
| | | | | | | Conflicts: src/attributes.js src/data.js src/manipulation.js
* No ticket. Restore checking individual src/**/*.js files by jsHint.Michał Gołębiowski2013-09-061-7/+9
|
* Specify support as a dependency wherever it is used. Optimize module order ↵Timmy Willison2013-08-151-2/+3
| | | | | | | | | | to save 15 bytes. Conflicts: src/css.js src/manipulation.js src/offset.js src/support.js
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-8/+21
| | | | | | | | | | | | | | | | | | | | Conflicts: Gruntfile.js README.md src/ajax.js src/ajax/xhr.js src/attributes.js src/core.js src/css.js src/data.js src/effects.js src/event.js src/manipulation.js src/offset.js src/selector-native.js src/traversing.js test/unit/core.js test/unit/data.js
* No ticket: Reduce size in anticipation of Sizzle-free buildsRichard Gibson2013-02-221-2/+2
|
* Fix #13315: compare typeof node.method to var instead of literal "undefined" ↵Richard Gibson2013-01-241-1/+1
| | | | for safer uglification
* Pass style declarations around for performance improvements and paving the ↵Mike Sherov2012-12-111-4/+4
| | | | | | way for the css array signature Also, simplify the jQuery.css numeric coercion signature
* Fix #11542. document.body should not be special in .offset() and ↵Daniel Gálvez2012-10-241-29/+7
| | | | document.documentElement is the default element.offsetParent. Close gh-899.
* new JSHINT mixed spaces/tabs is smart enough to not warn on multiline ↵Mike Sherov2012-10-221-1/+1
| | | | comments, rendering smarttabs useless
* Fixes #12749, correctly detect position() for position:fixed elements, ↵Merrifield, Jay2012-10-171-18/+24
| | | | closes gh-991
* Fix #12536. Start at .offset() 0,0 if no getBoundingClientRect.Dave Methvin2012-09-141-9/+14
| | | | This lets us still add the other offset components to the number so they're less wrong. Affects BlackBerry 5 and iOS 3, everyone else has gBCR.
* Fix #12534. Don't die on browsers lacking getBoundingClientRect.Dave Methvin2012-09-131-2/+2
|
* Fix #11962. Standardize getter return values for empty sets.Uri Gilad2012-07-091-2/+2
|
* Fix #8482, offsetParent should not return null. Closes gh-847.Nowres Rafid2012-07-061-1/+1
|
* Strips IIFEs from modules; Always require built jQuery for tests.Rick Waldron2012-06-041-4/+0
|
* Followup gh-796. Eliminate try-catch in oldIE, closes gh-799.Oleg2012-05-281-8/+4
|