or
displayMessage = function (displayTitle, display) { $("<div></div>").kendoWindow({ animation: { open: { effects: "slideIn:left fadeIn", duration: 500 }, close: { effects: "slide:left fadeOut", duration: 500 } }, visible: true, title: displayTitle, modal: true, width: "50%", deactivate: function () { this.element.closest(".k-widget").remove(); } }).data("kendoWindow") .content(display) .center() .open(); }and call the method:
displayMessage("Test", "<label>Hi there</label>");
//get windows size
if (document.body && document.body.offsetWidth) {
windowsWidth = document.body.offsetWidth;
windowsHeight = document.body.offsetHeight;
}
if (document.compatMode=='CSS1Compat' &&
document.documentElement &&
document.documentElement.offsetWidth ) {
windowsWidth = document.documentElement.offsetWidth;
windowsHeight = document.documentElement.offsetHeight;
}
if (window.innerWidth && window.innerHeight) {
windowsWidth = window.innerWidth;
windowsHeight = window.innerHeight;
}
but on iPad I get these size: 980 x 1080 (not the real 768 x 1024).
Thanks Mauro