aboutsummaryrefslogtreecommitdiffstats
path: root/src/dimensions.js
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Misc: Drop support for older browsers; update support comments"Timmy Willison2016-01-061-1/+1
| | | | This reverts commit 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278.
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-4/+7
| | | | | Ref 10fdad742a2a6aa9f0e00b3e04fc5264797c53c7 Fixes gh-2056
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-12-081-1/+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
* 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
* Apply consistent ordering in all modules. -219 bytes. Order modules like ↵Timmy Willison2013-09-091-0/+1
| | | | 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/+2
| | | | | | | Conflicts: src/attributes.js src/data.js src/manipulation.js
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-0/+5
| | | | | | | | | | | | | | | | | | | | 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
* Pass style declarations around for performance improvements and paving the ↵Mike Sherov2012-12-111-1/+1
| | | | | | way for the css array signature Also, simplify the jQuery.css numeric coercion signature
* Fix #12283. Return null for dimension getters on non elements. Fix gh-900.Mike Sherov2012-08-191-1/+1
|
* Follow the style guide, lose 72 bytes! Closes gh-840.Mike Sherov2012-07-091-8/+5
|
* Fixe dimensions tests. No core code changes. Supplements #11856Mike Sherov2012-06-061-1/+1
|
* Strips IIFEs from modules; Always require built jQuery for tests.Rick Waldron2012-06-041-4/+0
|
* Fix #11724, $(document).height() in Firefox 12. Closes gh-802.Mike Sherov2012-05-311-10/+4
| | | | This reopens #3838 for IE6 which is a regression on a fix in 1.7.2, but we'd rather break a really old IE than a really recent Firefox.
* Apply a GibsonTransform(-55) to the #10877 fix. Closes gh-788.Richard Gibson2012-05-241-62/+44
|
* Fix #10877. Make outerWidth/Height a setter. Closes gh-783.Mike Sherov2012-05-211-21/+21
|
* Fix #6724, though the Mobile Safari wound remains. Closes gh-764.Matt Farmer2012-05-141-6/+5
|
* Fix 11004. getWH() box-sizing:border-box includes padding and border.Mike Sherov2012-04-101-1/+1
|
* Speed up .css() by eliminating the middleman.Mike Sherov2012-04-051-1/+1
|
* Fix #3838, $(document).height() incorrect in IE6Mike Sherov2012-03-021-1/+9
| | | | May still be broken in Netscape Navigator 4.
* Fix #7986. $.support.boxModel shan't be fooled by page-level CSS.Mike Sherov2012-02-241-1/+1
|
* Fix #5571. Setters should treat `undefined` as a no-op and be chainable.Richard Gibson2011-12-061-41/+32
|
* Fix #10478. Replace jQuery.isNaN with jQuery.isNumeric.Dave Methvin2011-10-111-1/+1
| | | | Thanks to Christian C. Salvadó for the unit tests!
* Add support for calling outer/inner Width/Height on the window and document. ↵timmywil2011-09-301-2/+6
| | | | Fixes #9434.
* Make sure body is defined before attempting to use its properties. This ↵scottjehl2011-08-021-2/+3
| | | | check prevents an error from occurring when the width() or height() methods are called before the body is defined in browsers that return false on the first condition and proceed on to the second. For example, simply calling $( window ).width() from a script in the HEAD will throw an error in Nokia webkit browsers without this check in place.
* Optimize width/height retrieval (moved logic to getWH, removed adjustWH). ↵timmywil2011-06-061-3/+3
| | | | Supplements #9441, #9300.
* Move window/document test to dimensions for consistencytimmywil2011-05-251-6/+6
|
* Return null for outer/inner width/height calls on window/document. Fixes #7557.timmywil2011-05-251-4/+6
|
* Revised the Nokia support fallback. It turns out that Nokia supports the ↵scottjehl2011-01-191-2/+4
| | | | documentElement property but does not define document.compatMode. Adding this third fallback allows Nokia to run jQuery error-free and return proper values for window width and height.
* set name to lowercase, since it's passed as initial capsscottjehl2011-01-131-1/+1
|
* Merge branch 'master' of https://github.com/jquery/jqueryscottjehl2011-01-131-1/+1
|\
| * Clean trailing whitespace from all files.Colin Snover2010-12-301-1/+1
| |
* | Getting window dimensions currently fails in Nokia browsers, causing JS ↵scottjehl2010-12-221-1/+1
|/ | | | error (and consequently making jQuery Mobile fail to render the page). Based on a tip from Ben Nolan, this fix returns window.screen[width|height] if the other attempts at getting window dimensions fail. On mobile at least, it seems to make sense, and on desktop (assuming this issue would ever show up on desktop), this might be better than returning false or undefined.
* Make sure that when multiple variables are being declared that assignments ↵John Resig2010-11-091-1/+3
| | | | are each done on their own line.
* Make sure that .width()/.height() don't return NaN also standardize on ↵jeresig2010-10-221-20/+22
| | | | returning instead of auto for default values (which is what we do elsewhere in .css() as well). Fixes #7225.
* Unify the means of detecting a window across the library. Fixes jQuery UI ↵jeresig2010-09-221-1/+1
| | | | bug #5438 and jQuery bugs #6575 and 6088.
* Derp, had parseInt on the brain. Thanks karbassi in ↵John Resig2010-09-171-3/+3
| | | | 6541eb9d80db42c6ced396fcd198228bff9ec7f1.
* Cleaning up some un-needed CSS code and adding back a temporary (deprecated) ↵John Resig2010-09-171-2/+2
| | | | curCSS method.
* Split apart jQuery.css into jQuery.css (computed values) and jQuery.style ↵jeresig2010-09-161-2/+2
| | | | (currently set values).
* Make sure that height/width methods return numbers instead of strings.jeresig2010-09-091-3/+3
|
* Make sure that jQuery works even when the individual modules are loaded ↵jeresig2010-09-081-0/+4
| | | | separately AND jQuery.noConflict(true) is used. Fixes #7011.
* First pass at unifying the various CSS methods in jQuery (jQuery.style, ↵John Resig2010-09-051-2/+2
| | | | jQuery.curCSS, and jQuery.css are now all under jQuery.css).
* Added in .height(fn) and .width(fn) support. Fixes #5915.jeresig2010-01-231-0/+7
|
* Made a number of spacing changes to bring the code more-inline with the ↵jeresig2009-12-211-3/+3
| | | | jQuery Core Style Guideline.
* Make sure that calling .width(num) or .height(num) on an empty set returns ↵John Resig2009-12-091-1/+4
| | | | the empty set. Fixes #5600.
* added curly braces around all if/else statementsKarl Swedberg2009-11-281-1/+1
|
* Switching to use a better check for if the node is a document.John Resig2009-07-181-1/+1
|
* width, height, scrollLeft, and scrollTop now work with windows and documents ↵Brandon Aaron2009-04-221-8/+10
| | | | other than just the one it was loaded in (like iframes and popups)
* remove trailing spacesBrandon Aaron2009-03-231-1/+1
|
* fix for #4399, removing unused variablesBrandon Aaron2009-03-221-3/+1
|