Mike Sherov
c4e22ad8b5
Fix #11721 . Remove jQuery.boxModel, deprecate jQuery.support.boxModel.
...
This removes all internal uses of `jQuery.support.boxModel`. jQuery has never run unit tests with Quirks Mode and has not even feigned support for several years, so these remnants weren't doing much except giving false hope.
For now, `jQuery.support.boxModel` continues to have a value indicating whether the W3C box model is *generally* in use, but be aware that this is easily overridden on an element-by-element basis by the `box-model` CSS property. So don't trust this value.
2012-05-15 23:29:20 -04:00
Mike Sherov
77536f5cb2
Fix #10996 , simplify offset code by forsaking ancient browsers.
2012-04-05 21:55:28 -04:00
Mike Sherov
135bb4ff81
Add undef:true to JSHint now that it understands hoisting
...
also add smarttabs:true and fix some smarttabs spacing issues
2012-01-19 22:36:08 -05:00
Mike Sherov
98386cfd77
Fix #10692 . JSLint is dead! Long live JSHint!
...
Still needs this sizzle PR: https://github.com/jquery/sizzle/pull/82
2011-12-08 21:04:57 -05:00
Richard Gibson
6c2a501de4
Fix #5571 . Setters should treat undefined
as a no-op and be chainable.
2011-12-06 15:25:38 -05:00
timmywil
83a355a9a0
jQuery.support.supportsFixedPosition -> jQuery.support.fixedPosition; Remove jQuery.offset.supportProps and reference support in offset
2011-10-31 12:33:55 -04:00
Rick Waldron
33e98834fe
Cleanup spacing in offset.js. Fixes #10601
2011-10-27 15:33:21 -04:00
Rick Waldron
f60213648c
Landing pull request 477. 1.7 jQuery.offset.supportsFixedPosition. Fixes #6809 .
...
More Details:
- https://github.com/jquery/jquery/pull/477
- http://bugs.jquery.com/ticket/6809
2011-09-19 21:03:41 -04:00
John Resig
f1d75edec7
Merge branch 'bug_7931' of https://github.com/Xavi-/jquery into Xavi--bug_7931
...
Conflicts:
src/offset.js
2011-04-12 16:13:56 -04:00
louisremi
a5604aedb7
merge with master and resolve more conflicts
2011-04-12 11:29:25 +02:00
jeresig
0d755dff13
Merge branch 'master' of https://github.com/inukshuk/jquery into inukshuk-master
...
Conflicts:
test/unit/offset.js
2011-04-12 00:25:36 -04:00
louisremi
11adde5127
second batch
2011-04-11 22:33:29 +02:00
timmywil
f9cc5597a4
Fix test cases for bug #8316 fix.
...
- Removed special page, just needed another test in the fixed offset tests
- Checks it's position related to scrolling
2011-03-31 02:55:16 -04:00
Dave Methvin
ad4152709c
Fixes #8203 . Remove some misguided nulling of elements done in the name of IE memory cleanup. Based on a patch by davidmurdoch in pull 226.
2011-03-30 21:21:49 -04:00
Michael Murray
e8f4629b92
Offset setter for fixed position elements in Webkit. Fixes #8316 .
2011-03-24 19:02:38 -04:00
Anton M
6b08d88d04
Fix some whitespace issues.
2011-02-15 22:09:09 +01:00
John Resig
c1d719b580
Merge branch 'master' of https://github.com/russtacular/jquery into russtacular-master
2011-01-18 14:20:05 -05:00
Xavi
135a384cf3
Bug 7931; cleaned up white space in accordance to style guide
2011-01-18 12:40:07 -05:00
Sylvester Keil
75655e5758
Use parseFloat instead of parseInt to read CSS values.
...
This fixes #7730 and #7885 .
2011-01-15 13:56:20 +01:00
Xavi
b78e3fc39f
Bug 7931; Inverted logic in scrollTop/Left (i.e. made
2011-01-09 20:51:20 -05:00
Xavi
628bacc3ce
Bug 7931; Added missing semicolon and replaced '!=' with '!==' to allow null through
2011-01-09 20:16:18 -05:00
Xavi
d03d2e9f26
Bug 7931; Fixed bug that caused scrollTop and scrollLeft setters to return null when called on an empty jquery object
2011-01-09 19:11:05 -05:00
Colin Snover
3e0cc81504
Clean trailing whitespace from all files.
2010-12-30 00:34:48 -06:00
Russell Holbrook
50170e6180
jQuery.fn.offset no longer returns ClientRect object for disconnected elements
...
Instead of returning box, which is a ClientRect, we take the top and left box
values and place them into a generic object.
2010-11-22 18:26:46 -05:00
John Resig
fb48ae8e6c
Make sure that when multiple variables are being declared that assignments are each done on their own line.
2010-11-09 11:09:07 -05:00
John Resig
ea507b3e99
Make sure that we don't attempt to handle scrolling when the node is disconnected from the document. Fixes #7190 .
2010-10-14 14:52:31 -04:00
jeresig
19b4ba35c4
Return the zeroed-out bounding box instead of passing it on.
2010-10-10 18:54:30 -04:00
John Resig
ec7ea3fba1
Adjust fallback top/left to just be 0 for disconnected DOM nodes. Follow-up to cf672a2e7a
, thanks to @jitter for the catch.
2010-09-29 05:45:52 -07:00
John Resig
cf672a2e7a
Make sure that .offset() doesn't fail against disconnected DOM nodes. Fixes #4996 .
2010-09-28 10:55:48 -04:00
jeresig
c8dd49f756
Unify the means of detecting a window across the library. Fixes jQuery UI bug #5438 and jQuery bugs #6575 and 6088.
2010-09-22 16:41:51 -04:00
jeresig
9dc6e0c572
Applied the RegExp issues reported by Jeff Robinson here: http://jmrware.com/articles/2010/jqueryregex/jQueryRegexes.html Additionally broke out all remaining inline RegExp. Fixes #7062 .
2010-09-22 09:16:28 -04:00
jeresig
37b607d281
Split apart jQuery.css into jQuery.css (computed values) and jQuery.style (currently set values).
2010-09-16 10:00:56 -04:00
jeresig
a44ec40277
Make sure that jQuery works even when the individual modules are loaded separately AND jQuery.noConflict(true) is used. Fixes #7011 .
2010-09-08 12:00:29 -04:00
John Resig
920099b29c
First pass at unifying the various CSS methods in jQuery (jQuery.style, jQuery.curCSS, and jQuery.css are now all under jQuery.css).
2010-09-05 10:17:18 -04:00
Brandon Aaron
656fe92178
Fixed an issue with setting offset of absolutely positioned element that has no position values ("auto"). Fixes #5781 .
2010-03-22 20:11:37 -04:00
Brandon Aaron
08cf82e88e
Fix setting only one property at a time in .offset({})
2010-03-22 20:05:08 -04:00
jeresig
fc08d0ea8d
Fixed some cases where expression, expression was used and shouldn't be.
2010-03-01 16:26:57 -05:00
brandonaaron
1d352084c4
Use correct window reference in offset to work properly cross-frame. Fixes #6190 .
2010-02-27 19:43:23 -06:00
Karl Swedberg
2c28f229e5
fixed offset(coordinates) returns null when no matching elements in jQuery object (fixes ticket #5888 )
2010-01-24 01:26:35 +08:00
jeresig
0e5370b89c
Re-ordering the args to setOffset() in case people were relying upon the old order (doubtful).
2010-01-07 14:08:32 -05:00
jeresig
4fa00369f0
Added in support for .offset(Function).
2010-01-07 14:07:21 -05:00
jeresig
6cb2945837
Rather than declaring empty anonymous functions all around, introduce and use a single empty function. Thanks to Matt Kruse for the suggestion.
2009-12-31 09:50:49 -05:00
jeresig
3776cbe314
Standardize on using double-quotes for string literals.
2009-12-21 20:13:16 -05:00
jeresig
61e37d4149
Made a number of spacing changes to bring the code more-inline with the jQuery Core Style Guideline.
2009-12-21 19:58:13 -05:00
John Resig
9a371e2d93
Fixed the case where getComputedStyled was assumed to exist if getBoundingClientRect did (which isn't the case on the Playstation 3). Fixes #5467 .
2009-11-07 14:57:27 +01:00
Brandon Aaron
daffb954e3
offset is now a setter
2009-09-15 19:15:04 +00:00
Brandon Aaron
fd0bf5d6ed
Fix for #4972 . Dreamweaver CS4 crashes on offset module. Thanks mike.helgeson
2009-07-25 16:08:18 +00:00
Brandon Aaron
3d8ceaf2f2
revision 6494 accidentally reverted some changes to offset module
2009-07-25 16:04:30 +00:00
Brandon Aaron
cafd392af0
add scrollTop/Left tests and fix for IE
2009-07-24 22:32:53 +00:00
John Resig
48e9a39995
Standardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923 .
2009-07-19 13:32:53 +00:00
John Resig
a3b8ac413f
Rewrote .offsetParent() to work against the full jQuery set, added tests. Fixes #4922 .
2009-07-19 13:04:18 +00:00
John Resig
f0681d98fe
Made a number of stylistic changes to the offset code (braces, declarations, etc.).
2009-07-19 12:53:39 +00:00
Brandon Aaron
4edbff9fc1
fix for #4906
2009-07-17 21:08:13 +00:00
Brandon Aaron
1bd4325cb9
fixing a few more memory leaks in IE
2009-04-22 20:00:30 +00:00
Brandon Aaron
432ea4ca6c
offset returns null for window and document elements. fixes #4136 again
2009-04-22 05:29:01 +00:00
Brandon Aaron
6a12363f29
remove radix param for parseFloat calls
2009-04-22 01:34:13 +00:00
Brandon Aaron
2adb9b2a0f
width, height, scrollLeft, and scrollTop now work with windows and documents other than just the one it was loaded in (like iframes and popups)
2009-04-22 00:55:44 +00:00
Brandon Aaron
a0d079f430
clean up offset. #4456 thanks pbcomm
2009-04-21 19:19:28 +00:00
Brandon Aaron
2937d645cb
fix for #4439 , offset.initialize can cause the page to jump
2009-03-30 07:59:31 +00:00
Brandon Aaron
f8ef75eb91
remove trailing spaces
2009-03-23 01:55:17 +00:00
Brandon Aaron
10303c37a1
fix for #4115
2009-03-19 03:17:38 +00:00
Brandon Aaron
c0cdbf8b94
fix for #4263 , better support for nested fixed position elements
2009-03-19 02:54:57 +00:00
Brandon Aaron
aabf635cfe
using parseFloat for offset and position methods and removed num helper method
2009-03-17 21:07:11 +00:00
Brandon Aaron
a37cccc882
return null when no matched elements exist for offset and position
2009-03-17 20:50:17 +00:00
Brandon Aaron
36b4a9ba33
some clean up in the offset method
2009-03-17 20:43:46 +00:00
John Resig
7647cebc39
Added some missing spaces - helps to calm XHTML error messages in Safari.
2009-01-20 15:46:40 +00:00
John Resig
434b87b8a2
Moved from the old JSMin to using YUIMin for compressing the jQuery source. Additionally landed some improvements from #3770 which dramatically reduce the filesize. The final minifed + gzipped size of jQuery went from 19817 bytes to 18063 bytes.
2009-01-04 15:29:27 +00:00
John Resig
6f2f1830a4
Added a missing semicolon.
2008-12-20 14:39:36 +00:00
John Resig
0935f4a0b1
Removing remaining strict-mode warnings.
2008-12-19 04:36:28 +00:00
John Resig
ab551c2b14
Standardized the type checks across core. isFunction and isArray now use Object.prototype.toString to verify the type, .constructor use was removed in favor of typeof, typeof checks now use ===, undefined checks use === undefined. All of this is outlined in the new style guidelines: http://docs.jquery.com/JQuery_Core_Style_Guidelines#Type_Checks . Fixes bug #3618 .
2008-11-17 16:32:05 +00:00
Brandon Aaron
464535e096
fix the long standing 2px offset issue in QuirksMode in IE
2008-11-13 02:35:02 +00:00
Brandon Aaron
5c21e44fce
new offset method, faster and no more browser detection
2008-11-10 02:39:03 +00:00
Scott González
fa48ad1d1b
core: fixed #2993 : .offsetParent() will now return the body element in all browsers for fixed position elements.
2008-06-06 00:28:33 +00:00
Paul Bakaus
6141984b71
core: fixed offset method for FF3 - FF3 seems to have problems reporting the correct values with getBoundingClientRect on the body element
2008-05-25 13:18:01 +00:00
Brandon Aaron
82ba3709ee
Reverted back to using the num helper method in offset.js
2008-05-15 20:29:52 +00:00
Brandon Aaron
de6520b50e
Added some unit tests for position method. Fixed issue with position in IE.
2008-05-15 19:38:00 +00:00
Ariel Flesler
831625c43e
jquery offset: reducing more the code size.
2008-05-14 18:06:59 +00:00
Ariel Flesler
ac324c97e3
jquery offset: reducing the code size.
2008-05-14 17:54:54 +00:00
Ariel Flesler
3f5ff3097c
jquery: removing unnecessary trailing and leading spaces & tabs.
2008-05-13 01:45:58 +00:00
Scott González
bd41548792
core: make sure all source files end with a single blank line.
2008-04-30 19:35:17 +00:00
Brandon Aaron
aea452f162
Merged dimensions with core
2008-04-29 03:26:06 +00:00
Brandon Aaron
9de35ce3e7
Small optimization to offset (thanks Ariel Flesler)
2008-04-21 22:54:46 +00:00
John Resig
d44ddef720
Made outerHeight/outerWidth accept .outerWidth(true) to include the margin. If any options are passed in it's assumed that you want the margin included.
2008-03-15 19:00:07 +00:00
John Resig
8f14ee1dd5
Imported the innerHeight and outerHeight methods from the Dimensions plugin.
2008-03-15 18:53:40 +00:00
John Resig
e71e4a47f3
Landed a minor fix for AIR (in the offset method).
2008-02-06 03:48:22 +00:00
Brandon Aaron
e2fc993334
offset: make sure there is a parent node to work on while calculating scroll offsets ( #2073 )
2007-12-19 19:07:12 +00:00
Brandon Aaron
add0681f90
offset: make sure border width always gets calculated in pixels
2007-12-19 19:05:34 +00:00
Brandon Aaron
d7f5a0835b
Fixed #2064
2007-12-17 14:37:26 +00:00
David Serduke
feb9051c0e
Fixed #1781 for warnings created on load by FF javascript.options.strict == true.
2007-12-16 01:03:50 +00:00
Brandon Aaron
58c640fb1c
Added more unit tests for offset. Fixed an offset issue relating to table header cells in Opera
2007-12-12 16:55:55 +00:00
Brandon Aaron
e317bb7105
offset now uses clientLeft and clientTop instead of calculating html border in IE
2007-12-04 20:54:23 +00:00
Brandon Aaron
a9add215ea
offset: fixes for correct body offsets in safari and mozilla (thanks Wizzud)
2007-09-26 22:28:00 +00:00
Brandon Aaron
595d125365
offset: added fixed position support and fixed opera issue with borders on absolute and relative parents
2007-09-21 21:41:56 +00:00
Brandon Aaron
c9899a74ac
offset: do not add borders for table cells
2007-09-18 18:08:35 +00:00
Brandon Aaron
415a0916b5
remove box global var from offset
2007-09-17 18:20:51 +00:00
Brandon Aaron
4c5f091d22
safari2 should just check the browser and version
2007-09-11 02:13:00 +00:00
Brandon Aaron
ed51be1622
Include scroll offsets for everything but inline and table-row elements
2007-09-11 01:08:51 +00:00
Brandon Aaron
2608bae438
Couple of fixes to the offset method
2007-09-11 00:43:12 +00:00
John Resig
15a78f8fea
Reintroduced .offset() as a default include, added original author credits.
2007-09-08 18:02:39 +00:00
John Resig
28ee5c6922
Added the new .offset() method, directly imported from Dimensions (heavily worked over by both Brandon and John).
...
Original source:
http://brandonaaron.net/jquery/issues/dimensions/new_offset/jquery.offset.js
2007-09-08 14:44:29 +00:00