How to force popup to appear preferably on the right or left of an element in a stand alone initialisation.
I am using jQuery to find the element position.
var popup = new dhtmlXPopup();
var element = $(".color-box");
var x = element.offset().left;
var y = element.offset().top;
var w = element.width();
var h = element.height();
popup.show(x,y,w,h);