특정 탭 아이템 내용의 너비를 가져오는 API이다.
Parameters | Type | Description |
---|---|---|
nTabIndex | short | 탭 인덱스 |
nWidthType | short | 너비 유형 (Remark 참조) |
Type | Description |
---|---|
long | 탭 아이템 내용의 너비 (오류 발생시 -1) |
nTabIndex가 -1인 경우에는, 현재 포커스를 가진 탭을 대상으로 적용된다.
탭에 컴포넌트를 직접 생성한 경우 또는 탭에 addcontenttab, addportlettab API로 화면을 링크한 경우에 동작한다.
**nWidthType (너비 유형) 0 : 패딩을 포함한 보더와 스크롤바의 크기를 제외한 너비 (clientWidth) 1 : 보이지 않는 부분까지 포함한 내용(content)의 너비 (scrollWidth) 2 : 패딩을 포함한 보더와 스크롤바의 크기를 포함한 너비 (offsetWidth) 3 : anchor가 left 또는 center인 자식컴포넌트중 right좌표가 가장 오른쪽인 컴포넌트의 right좌표
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))
}