I'm working on a web application that uses Bing Maps. I'm having some trouble with infoboxes. I have infoboxes which are created simply like this:
infowindow2 = new Microsoft.Maps.Infobox(new Microsoft.Maps.Location(0,0),{visible:true,});infowindow2.setOptions({offset:new Microsoft.Maps.Point(0,newHeight - oldHeight + 38),description: contentString, visible:true, zIndex:30000});infowindow2.setLocation(latLon);this.virtEarthInfoboxLayer.push(infowindow2);The problem is that when the mouse is dragged to the right and an infobox moves out of the map's bounds, its width decreases as it moves more to the right and its height increases causing the content inside the infobox to be pushed downwards. For some reason, this only happens when the infobox moves out of the right edge of the map. Has anyone ever experienced this before?
Any help is appreciated.Thank you.
أكثر...
infowindow2 = new Microsoft.Maps.Infobox(new Microsoft.Maps.Location(0,0),{visible:true,});infowindow2.setOptions({offset:new Microsoft.Maps.Point(0,newHeight - oldHeight + 38),description: contentString, visible:true, zIndex:30000});infowindow2.setLocation(latLon);this.virtEarthInfoboxLayer.push(infowindow2);The problem is that when the mouse is dragged to the right and an infobox moves out of the map's bounds, its width decreases as it moves more to the right and its height increases causing the content inside the infobox to be pushed downwards. For some reason, this only happens when the infobox moves out of the right edge of the map. Has anyone ever experienced this before?
Any help is appreciated.Thank you.
أكثر...