Is it possible to restrict the custom info popup to always lie within the current map extent. At the moment depending upon where the user clicks, the pop up is generated and displayed either left or right to the click. However if the user clicks near the bottom of the map, half of the pop up lies outside the current display.
Is it possible to move the custom info pop up box in current stage, if some part of it lies outside the current view.
I have tried a few things but have been having problems because of differences in the map coordinates and screen coordinates.
Has anyone got any ideas??