728x90
[출처] http://chadschroeder.blogspot.kr/2012/10/sharepoint-2010-easy-dynamic-resize-of.html
function AutosizeDialog() {
//resize dialog if we are in one
var dlg = typeof(SP.UI.ModalDialog.get_childDialog) == "function" ? SP.UI.ModalDialog.get_childDialog() : null;
if (dlg != null) {
dlg.autoSize();
var dlgWin = $(".ms-dlgContent", window.parent.document);
dlgWin.css({ top: ($(window.top).height() / 2 - dlgWin.height() / 2) + "px", left: $(window.top).width() / 2 - dlgWin.width() / 2 });
}
}
728x90
'SharePoint Designer' 카테고리의 다른 글
쉐어포인트 파일첨부 용량 제한 컨셉 (0) | 2014.03.11 |
---|---|
Locale IDs Assigned by Microsoft - 다국어처리 코드 (0) | 2014.03.10 |
sharepoint 에 foorer 넣기 (0) | 2014.02.11 |
Display Users with Presence in a SharePoint Hosted App (0) | 2014.02.03 |
로고 클릭 시 메인 페이지로 이동하기 (0) | 2013.12.24 |
댓글