데

사이드뷰 DTD 이용시

· 2011-08-23 (화) 09:46:04 · 5023 · 5
사이드뷰를 DTD 선언후(XHTML 1.0, XHTML 1.1, HTML 5 등) 이용시 제위치에 안뜨는 문제가 있더군요.

js/sideview.js 파일을 여서서 127 라인의

        if (getAbsoluteTop(this.curObj) + this.curObj.offsetHeight + oSideViewLayer.scrollHeight + 5 > oBody.scrollHeight)
            oSideViewLayer.style.top = getAbsoluteTop(this.curObj) - oSideViewLayer.scrollHeight;
        else
            oSideViewLayer.style.top = getAbsoluteTop(this.curObj) + this.curObj.offsetHeight;

        oSideViewLayer.style.left = getAbsoluteLeft(this.curObj) - this.curObj.offsetWidth + 14;

를 다음과 같이 변경하시면 됩니다

        if (getAbsoluteTop(this.curObj) + this.curObj.offsetHeight + oSideViewLayer.scrollHeight + 5 > oBody.scrollHeight)
            oSideViewLayer.style.top = getAbsoluteTop(this.curObj) - oSideViewLayer.scrollHeight + "px";
        else
            oSideViewLayer.style.top = getAbsoluteTop(this.curObj) + this.curObj.offsetHeight + "px";

        oSideViewLayer.style.left = getAbsoluteLeft(this.curObj) - this.curObj.offsetWidth + 14 + "px";
|

댓글 5개

2011-08-24 (수) 22:07:36
감사합니다.
2011-09-05 (월) 15:53:45
이거 말고도 .. 관리자모드도 ... 똑같이 px를 추가해 주는게 좋습니다
adm/admin_head.php의 153,154행도 px 추가요.

menu.style.left = get_left_pos(link) + x + "px" ;
menu.style.top = get_top_pos(link) + link.offsetHeight + y + "px";
2012-02-10 (금) 02:21:36
정말 감사합니다. ㅠ
감사드립니다...
댓글을 작성하시려면 로그인이 필요합니다.

그누4 팁자료실

3,309건

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
11-09-14 조회 5,953
11-09-13 조회 1.9만
11-09-08 조회 8,122
11-09-08 조회 5,445
11-09-07 조회 5,745
11-09-06 조회 6,057
11-09-06 조회 2.3만
11-09-03 조회 5,143
11-09-02 조회 6,871
11-09-02 조회 4,172
11-09-01 조회 5,289
11-09-01 조회 7,286
11-08-30 조회 4,802
11-08-29 조회 4,724
11-08-28 조회 3,523
11-08-26 조회 5,608
11-08-26 조회 8,607
11-08-25 조회 3,836
11-08-23 조회 9,926
11-08-23 조회 5,024