특정 탭 아이템 내용의 높이를 가져오는 API이다.
Parameters | Type | Description |
---|---|---|
nTabIndex | short | 탭 인덱스 |
nHeightType | short | 높이 유형 (Remark 참조) |
Type | Description |
---|---|
long | 탭 아이템 내용의 높이 (오류 발생시 -1) |
nTabIndex가 -1인 경우에는, 현재 포커스를 가진 탭을 대상으로 적용된다.
탭에 컴포넌트를 직접 생성한 경우 또는 탭에 addcontenttab, addportlettab API로 화면을 링크한 경우에 동작한다.
**nHeightType (높이 유형) 0 : 패딩을 포함한 보더와 스크롤바의 크기를 제외한 높이 (clientHeight) 1 : 보이지 않는 부분까지 포함한 내용(content)의 높이 (scrollHeight) 2 : 패딩을 포함한 보더와 스크롤바의 크기를 포함한 높이 (offsetHeight) 3 : anchor가 top 또는 center인 자식컴포넌트중 bottom좌표가 가장 아래쪽인 컴포넌트의 bottom좌표
function btn_getscreencontentheight_on_mouseup(objInst)
{
factory.consoleprint("client 높이 = " + tab_content.gettabitemcontentheight(-1, 0));
factory.consoleprint("scroll 높이 = " + tab_content.gettabitemcontentheight(-1, 1));
factory.consoleprint("offset 높이 = " + tab_content.gettabitemcontentheight(-1, 2));
factory.consoleprint("client 너비 = " + tab_content.gettabitemcontentwidth(-1, 0));
factory.consoleprint("scroll 너비 = " + tab_content.gettabitemcontentwidth(-1, 1));
factory.consoleprint("offset 너비 = " + tab_content.gettabitemcontentwidth(-1, 2))
}