jQuery 오류 수정

* 오페라에서 $(window).height()의 값 오류 수정. ref : http://dev.jquery.com/changeset/5938
  * 사파리/크롬에서 스크롤바 두께를 강제적으로 제거하여 반환하도록 수정. 임의의 16픽셀 고정.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5067 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-12-14 04:03:32 +00:00
parent 0ccb57de57
commit fb03b239bc

View file

@ -1339,10 +1339,13 @@ jQuery.each([ "Height", "Width" ], function(i, name){
// Get window width or height
return this[0] == window ?
// Opera reports document.body.client[Width/Height] properly in both quirks and standards
jQuery.browser.opera && document.body[ "client" + name ] ||
// 오페라에서 값을 잘 못 반환하는 문제 수정
// ref : http://dev.jquery.com/changeset/5938
jQuery.browser.opera && document.body.parentNode[ "client" + name ] ||
// Safari reports inner[Width/Height] just fine (Mozilla and Opera include scroll bar widths)
jQuery.browser.safari && window[ "inner" + name ] ||
// 사파리/크롬에서 스크롤바 두께를 강제적으로 제거하여 반환
jQuery.browser.safari && window[ "inner" + name ] - 16 ||
// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] || document.body[ "client" + name ] :