Select to view content in your preferred language

infoWindowRenderer not positioning itself correctly

1768
1
09-12-2011 02:12 AM
PaulHastings1
Deactivated User
i have a graphics layer handling Panoramio photos using a fairly basic infoWindow renderer that will often not position the infoWindow correctly & the image/infoWindow will get clipped (see attached image, "infoWindowClipped"). nudging the map extent a bit often fixes that & the infoWindow will automagically position itself correctly (see "infoWindwoNotclipped" image).

am i doing something wrong or is this an issue w/the API (and needs a workaround)?

<esri:infoWindowRenderer>
<fx:Component>
  <esri:LabelDataRenderer>
   <esri:label>{data.title}</esri:label>
   <s:BorderContainer backgroundColor="white"
    borderColor="black"
    color="0x3B72F9"
    cornerRadius="5"
    minHeight="0"
    minWidth="0">
     <s:layout>
       <s:VerticalLayout paddingBottom="5"
        paddingLeft="5" paddingRight="5"
        paddingTop="5"/>
     </s:layout>          
     <s:Image source="{data.photoURL}" height="{data.height}" width="data.width}"/>
          </s:BorderContainer>   
  </esri:LabelDataRenderer>
</fx:Component>
</esri:infoWindowRenderer>

thanks.
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: coldfusionPaul

i've also noted this happening w/other infoWindows with images.
0 Kudos