* IE7에서 날짜입력용 달력이 엉뚱한 위치에 뜨는 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4508 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-09-17 01:28:41 +00:00
parent dfd2dc7f2f
commit 62e303f1bf
2 changed files with 191 additions and 8 deletions

View file

@ -1389,13 +1389,10 @@ DyCalendar.prototype.showAtElement = function (el, opts) {
document.body.appendChild(cp);
var br = DyCalendar.getAbsolutePos(cp);
document.body.removeChild(cp);
if (DyCalendar.is_ie) {
br.y += document.body.scrollTop;
br.x += document.body.scrollLeft;
} else {
br.y += window.scrollY;
br.x += window.scrollX;
}
if (document.body.scrollLeft){br.x += document.body.scrollLeft;}
br.x += window.scrollX;
if (document.body.scrollTop){br.y += document.body.scrollTop;}
br.y += window.scrollY;
var tmp = box.x + box.width - br.x;
if (tmp > 0) box.x -= tmp;
tmp = box.y + box.height - br.y;

File diff suppressed because one or more lines are too long