I am adding popups to my application and followed the sample
In that sample, when you click on a location close to the edge of the map, it puts the popup automatically on the inside. In my case, it does not do that properly, and sometimes, the popup is outside the map and therefore gets partially cut. This happens mostly when I click on the right side of the map. It put the popup to the right of where I clicked instead of to the left as expected. Any idea what is causing this behavior?