I am using Openlayers-2.12 release.
But anchored popup offset is not working properly. It displays popup for left side in other half of map although i have given relative positioning as “tr”.
var popup = new OpenLayers.Popup.Anchored("popup");
var offset = {'size':new OpenLayers.Size(10,12),'offset':new OpenLayers.Pixel(0,-12)};
popup.offset = offset;
popup.relativePosition = "tr";
Any help?
I am answering my own question by thinking that it may help others.
It works fine if i use only popup instead of anchored popup.