<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Map does not pan over to show infowindow... in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-does-not-pan-over-to-show-infowindow/m-p/548209#M51018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When a map div is narrow, and you click on a feature to show an infowindow, the map does not pan over to display the full infowindow.&amp;nbsp; Instead, the infowindow gets cut off and the user cannot close it without panning the map (see attached image).&amp;nbsp; Any ideas how I can solve this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can replicate the issue using this sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/widget/widget_infowindow.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/widget/widget_infowindow.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/widget_infowindow.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/widget_infowindow.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 15:44:48 GMT</pubDate>
    <dc:creator>GISAdmin1</dc:creator>
    <dc:date>2012-05-23T15:44:48Z</dc:date>
    <item>
      <title>Map does not pan over to show infowindow...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-does-not-pan-over-to-show-infowindow/m-p/548209#M51018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When a map div is narrow, and you click on a feature to show an infowindow, the map does not pan over to display the full infowindow.&amp;nbsp; Instead, the infowindow gets cut off and the user cannot close it without panning the map (see attached image).&amp;nbsp; Any ideas how I can solve this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can replicate the issue using this sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/widget/widget_infowindow.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/widget/widget_infowindow.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/widget_infowindow.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/widget_infowindow.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 15:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-does-not-pan-over-to-show-infowindow/m-p/548209#M51018</guid>
      <dc:creator>GISAdmin1</dc:creator>
      <dc:date>2012-05-23T15:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Map does not pan over to show infowindow...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-does-not-pan-over-to-show-infowindow/m-p/548210#M51019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This little hack works like a charm:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

var screenPt = evt.screenPoint;
var mapPt = map.toMap(screenPt);

if (Math.abs(screenPt.x - 335) &amp;lt; 55) {
 if(screenPt.x &amp;lt; 335) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; screenPt.x = 270;
 } else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; screenPt.x = 400;
 }
}

var mapPtNew = map.toMap(screenPt);
shiftX = mapPt.x - mapPtNew.x;
map.setExtent(map.extent.offset(shiftX, 0));
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-does-not-pan-over-to-show-infowindow/m-p/548210#M51019</guid>
      <dc:creator>GISAdmin1</dc:creator>
      <dc:date>2021-12-11T23:42:57Z</dc:date>
    </item>
  </channel>
</rss>

