I have implemented the dhtmlx popup in my application and it opens according to the window(left/right/top/bottom) but on the same popup once some content comes dynamically from ajax then it doesn’t resize as per window size…
how can i resize the popup again after dynamically loading content?
function showPopup(inp) {
var editpopup = $(’.calendarEventPopEditMainDiv’).html();
if (!myPop) {
myPop = new dhtmlXPopup();
myPop.attachHTML(editpopup);
$(".calendarEventPopEdit").show();
}
if (myPop.isVisible()) {
myPop.hide();
} else {
var x = window.dhx4.absLeft(inp);
var y = window.dhx4.absTop(inp);
var w = inp.offsetWidth;
var h = inp.offsetHeight;
myPop.show(x,y,w,h);
}
}
This is the function we are calling to show the popup and on the popup itself we need to click and get some more data and needs to show it on popup…