jqueryuiを使用してフルスクリーンダイアログを作成しようとしています。
ajaxを介していくつかのコンテンツをロードしましたが、結果がダイアログに表示されます。
function openResource(id) {
$.ajax({
url : "",
type : 'post',
dataType : 'html',
data : {
idRes: id
},
success : function(response) {
$("#popupRecurso")
.html("<div style='float:right; cursor: pointer;' onclick='$(\"#popupRecurso\").dialog(\"destroy\");'>fechar</div>" + response);
$("#popupRecurso").dialog({
title : '',
bgiframe : true,
position : 'center',
draggable : false,
resizable : false,
dialogClass : 'dialogRecurso',
width : $(window).width(),
height : $(window).height(),
stack : true,
zIndex : 99999,
autoOpen : true,
modal : true,
open : function() {
$(".ui-dialog-titlebar").hide();
},
error : function(err) {
alert(err);
}
});
}
});
}
残念ながら、ダイアログは中央に表示されず、正しいサイズが表示されません。誰かが同じ問題を抱えたことはありますか?
ありがとう