Managing popup position on dynamic content

Hello Team,

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?

Thanks

hi

please provide init code?

Hello,

Please check this…

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…

well, and how then you adding more data?
change editpopup’s innerHTML?

Yes we are adding more data on already open popup.

works fine localy (I tried just chnage html)
please send your completed demo or direct link to support@dhtmlx.com