Commit graph

31 commits

Author SHA1 Message Date
scottjehl 2b64b1db68 Revised the Nokia support fallback. It turns out that Nokia supports the 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. 2011-01-19 12:40:32 -05:00
scottjehl 73d060b522 set name to lowercase, since it's passed as initial caps 2011-01-13 14:20:00 -05:00
scottjehl 610ab137da Merge branch 'master' of https://github.com/jquery/jquery 2011-01-13 14:14:04 -05:00
Colin Snover 3e0cc81504 Clean trailing whitespace from all files. 2010-12-30 00:34:48 -06:00
scottjehl 18fa1fd9da Getting window dimensions currently fails in Nokia browsers, causing JS 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. 2010-12-22 15:24:07 -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
jeresig 53396b879b Make sure that .width()/.height() don't return NaN also standardize on returning instead of auto for default values (which is what we do elsewhere in .css() as well). Fixes #7225. 2010-10-22 02:39:06 -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
John Resig 2d70dc9c43 Derp, had parseInt on the brain. Thanks karbassi in 6541eb9d80. 2010-09-17 17:02:03 -04:00
John Resig 6541eb9d80 Cleaning up some un-needed CSS code and adding back a temporary (deprecated) curCSS method. 2010-09-17 14:41: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 cb3a9c14f1 Make sure that height/width methods return numbers instead of strings. 2010-09-09 16:33:05 -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
jeresig 4f9aa62a85 Added in .height(fn) and .width(fn) support. Fixes #5915. 2010-01-23 20:49:59 -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 a5f8a14411 Make sure that calling .width(num) or .height(num) on an empty set returns the empty set. Fixes #5600. 2009-12-09 21:58:29 -08:00
Karl Swedberg ddb86f8d5b added curly braces around all if/else statements 2009-11-28 04:09:14 +08:00
John Resig 9d46c0ebb4 Switching to use a better check for if the node is a document. 2009-07-18 19:44:15 +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 f8ef75eb91 remove trailing spaces 2009-03-23 01:55:17 +00:00
Brandon Aaron a974b255c3 fix for #4399, removing unused variables 2009-03-22 04:24:40 +00:00
Ariel Flesler 2d4755a0fb jquery dimensions: removed redundant code 2009-03-06 04:23:44 +00:00
John Resig 848c45ea17 Added some significant speed-ups to height/width checks, thanks to some code and investigation by Mike Helgeson. Fixes #3082. 2009-02-13 22:58:57 +00:00
John Resig b850ab2b8e Added the new jQuery.support object and removed all uses of jQuery.browser from within jQuery itself (while simultaneously deprecating the use of jQuery.browser). 2008-12-21 21:22:44 +00:00
Ariel Flesler 5a92ec263d jquery dimensions & offset: moving the local function 'num' to core, so it can be safely used by both modules. 2008-05-15 12:53:07 +00:00
Ariel Flesler f717260eea jquery dimensions: reducing the code size. 2008-05-14 17:23:44 +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
Scott González ea44348fdb core: Adding missing radix for paresInt. 2008-04-29 23:26:53 +00:00
Brandon Aaron aea452f162 Merged dimensions with core 2008-04-29 03:26:06 +00:00