aboutsummaryrefslogtreecommitdiffstats
path: root/src/dimensions.js
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* jquery dimensions: removed redundant codeAriel Flesler2009-03-061-5/+3
|
* Added some significant speed-ups to height/width checks, thanks to some code ↵John Resig2009-02-131-10/+9
| | | | and investigation by Mike Helgeson. Fixes #3082.
* Added the new jQuery.support object and removed all uses of jQuery.browser ↵John Resig2008-12-211-0/+27
| | | | from within jQuery itself (while simultaneously deprecating the use of jQuery.browser).
* jquery dimensions & offset: moving the local function 'num' to core, so it ↵Ariel Flesler2008-05-151-5/+1
| | | | can be safely used by both modules.
* jquery dimensions: reducing the code size.Ariel Flesler2008-05-141-5/+4
|
* jquery: removing unnecessary trailing and leading spaces & tabs.Ariel Flesler2008-05-131-7/+7
|
* core: make sure all source files end with a single blank line.Scott González2008-04-301-1/+1
|
* core: Adding missing radix for paresInt.Scott González2008-04-291-1/+1
|
* Merged dimensions with coreBrandon Aaron2008-04-291-0/+28