<?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 Re: Auto-panning map so that infowindow is fully visible in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393379#M36282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah I personally don't like the way that Google Maps can sometimes pan unpredictably to accommodate the infoWindow, but sometimes it makes sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given that the infoWindow (apparently?) has four possible angles from the anchor point to the actual window, sometimes it isn't possible to show it completely within the current view without panning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess another option could be to do away with the anchor point and arrow, and just position it somewhere constant (eg a sidebar)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2011 01:30:06 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2011-07-19T01:30:06Z</dc:date>
    <item>
      <title>Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393373#M36276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm looking for some guidance on how to make my map pan when an infowindow is launched (result of an identify) if the infowindow is not completely within view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take this example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my map prototype: satellite Bing layer with wilderness boundaries ArcGIS dynamic service that my colleague maintains overlayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://www.wilderness.net/mapTest_ss1.jpg" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you click within the Absaroka-Beartooth Wilderness boundary you get the infowindow with the results of an identify (grabs and ID number then outputs data from an array). Although I've used tabs to ensure that the infowindow can contain a fair amount of information but isn't too large, depending on where you click it will often be partially obscured (with the rest being outside the current map view).&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://www.wilderness.net/mapTest_ss2.jpg" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the infowindow isn't fully shown, I want the map to pan so that it is. So in this example, I want the map to pan to the below view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://www.wilderness.net/mapTest_ss3.jpg" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems like a pretty useful operation (Google Maps api, for example, automatically takes care of this) but I haven't been able to find any examples or anything about how to do it. So any assistance would be much appreciated. Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code for the prototype map from which I took the above screen snaps is available on my website at: &lt;/SPAN&gt;&lt;A href="http://www.wilderness.net/mapTest_esri3_strip.htm"&gt;http://www.wilderness.net/mapTest_esri3_strip.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 19:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393373#M36276</guid>
      <dc:creator>LisaEidson</dc:creator>
      <dc:date>2011-07-15T19:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393374#M36277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your code contains:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.infoWindow.resize(415,230);
map.infoWindow.show(evt.screenPoint, esri.dijit.InfoWindow.ANCHOR_UPPERRIGHT);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so it looks like you always want to show the infoWindow to the upper-right of the evt.screenPoint (the location the user clicks) and have it appear at this fixed size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use this logic to calculate whether the infoWindow will fit at a given point:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function executeIdentifyTask(evt) {
map.graphics.clear();

//Set the infoWindow to open at the top right of the point at all times
map.infoWindow.setFixedAnchor(esri.dijit.InfoWindow.ANCHOR_UPPERRIGHT);

//Determine the upper right, and center, coordinates of the map
var maxPoint = new esri.geometry.Point(map.extent.xmax, map.extent.ymax)
var centerPoint = new esri.geometry.Point(map.extent.getCenter());

//Convert these to screen coordinates
var maxPointScreen = map.toScreen(maxPoint);
var centerPointScreen = map.toScreen(centerPoint);

//Subtract the size of the infoWindow, including a buffer.
//This will show whether the infoWindow would spill out of the current view.
var xDiff = Math.abs(maxPointScreen.x - evt.screenPoint.x) - 435;
var yDiff = Math.abs(maxPointScreen.y - evt.screenPoint.y) - 285;

//If required, recalculate a new centerpoint which accounts for the infoWindow
if (xDiff &amp;lt; 0) {centerPointScreen.x -= xDiff;}
if (yDiff &amp;lt; 0) {centerPointScreen.y += yDiff;}

//Pan the map to the new centerpoint (in Map coordinates)
centerPoint = map.toMap(centerPointScreen);
map.centerAt(centerPoint);

//Display the infoWindow at the original point clicked
map.infoWindow.show(evt.screenPoint, esri.dijit.InfoWindow.ANCHOR_UPPERRIGHT);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:01:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393374#M36277</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2021-12-11T18:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393375#M36278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A few adjustments to the buffer amounts and this works flawlessly! Just what I wanted. Thanks much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 20:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393375#M36278</guid>
      <dc:creator>LisaEidson</dc:creator>
      <dc:date>2011-07-18T20:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393376#M36279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve's approach works, but why not use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#getInfoWindowAnchor"&gt;map.getInfoWindowAnchor&lt;/A&gt;&lt;SPAN&gt;? It's demonstrated &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/query/query_showinfowindow.html"&gt;one of the queryTask samples&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 01:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393376#M36279</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-19T01:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393377#M36280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;why not use &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#getInfoWindowAnchor"&gt;map.getInfoWindowAnchor&lt;/A&gt;?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wouldn't that give the same coordinate as evt.screenPoint, though? And I'm not sure how it helps to determine whether the map needs to pan.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 01:16:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393377#M36280</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2011-07-19T01:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393378#M36281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of panning the map, the map opens the info window so that it is completely within the map. This isn't exactly what OP asked for but figured I'd put it out there anyway...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 01:21:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393378#M36281</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-19T01:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393379#M36282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah I personally don't like the way that Google Maps can sometimes pan unpredictably to accommodate the infoWindow, but sometimes it makes sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given that the infoWindow (apparently?) has four possible angles from the anchor point to the actual window, sometimes it isn't possible to show it completely within the current view without panning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess another option could be to do away with the anchor point and arrow, and just position it somewhere constant (eg a sidebar)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 01:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393379#M36282</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2011-07-19T01:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393380#M36283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Personally, I'd rather see the info window accomodate the map rather than the map moving around. But maybe that's just because I've worked with this API so much and I'm just used to that behavior. I also like the sidebar approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The info window has four possible orientations: upper left, upper right, lower left and lower right. To figure out where to show it, the map is divided into four quadrants. If the anchor point for the info window is in the upper left, display the info window pointing to the lower right. If the anchor point is in the lower left, display the info window pointing to the upper right. Basically just show it so that it displays opposite the quadrant that was clicked so that the entire info window is visible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 01:40:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393380#M36283</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-07-19T01:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393381#M36284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Your code contains:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map.infoWindow.resize(415,230);
map.infoWindow.show(evt.screenPoint, esri.dijit.InfoWindow.ANCHOR_UPPERRIGHT);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;so it looks like you always want to show the infoWindow to the upper-right of the evt.screenPoint (the location the user clicks) and have it appear at this fixed size.&lt;BR /&gt;&lt;BR /&gt;You can use this logic to calculate whether the infoWindow will fit at a given point:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function executeIdentifyTask(evt) {
map.graphics.clear();

//Set the infoWindow to open at the top right of the point at all times
map.infoWindow.setFixedAnchor(esri.dijit.InfoWindow.ANCHOR_UPPERRIGHT);

//Determine the upper right, and center, coordinates of the map
var maxPoint = new esri.geometry.Point(map.extent.xmax, map.extent.ymax)
var centerPoint = new esri.geometry.Point(map.extent.getCenter());

//Convert these to screen coordinates
var maxPointScreen = map.toScreen(maxPoint);
var centerPointScreen = map.toScreen(centerPoint);

//Subtract the size of the infoWindow, including a buffer.
//This will show whether the infoWindow would spill out of the current view.
var xDiff = Math.abs(maxPointScreen.x - evt.screenPoint.x) - 435;
var yDiff = Math.abs(maxPointScreen.y - evt.screenPoint.y) - 285;

//If required, recalculate a new centerpoint which accounts for the infoWindow
if (xDiff &amp;lt; 0) {centerPointScreen.x -= xDiff;}
if (yDiff &amp;lt; 0) {centerPointScreen.y += yDiff;}

//Pan the map to the new centerpoint (in Map coordinates)
centerPoint = map.toMap(centerPointScreen);
map.centerAt(centerPoint);

//Display the infoWindow at the original point clicked
map.infoWindow.show(evt.screenPoint, esri.dijit.InfoWindow.ANCHOR_UPPERRIGHT);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to say thanks to Steve for this code, which works perfectly and saved me a ton of time.&amp;nbsp; +100 Internets for you!&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm migrating my application from the Google Maps extension for the JSAPI to v2.7 of the ESRI Javascript API (no google maps).&amp;nbsp; My infowindows contain a large amount of information and were previously designed with the assumption that the anchor would be fixed and the map would automatically pan so that the whole infowindow would be visible.&amp;nbsp; This is the default behavior of an infowindow in the google API.&amp;nbsp; When I migrated the app, I was finding that in certain situations, the infowindow would display partially outside the map bounds and the user would have to manually pan to see the whole thing.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was getting hung up on trying to programatically figure out the top corner of the infowindow and then do some math to figure out if it falls outside the map bounds, but Steve's solution avoids that whole issue by using the constants.&amp;nbsp; Very nice!&amp;nbsp; Just tweak the constants for your particular situation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393381#M36284</guid>
      <dc:creator>JeffSmith4</dc:creator>
      <dc:date>2021-12-11T18:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393382#M36285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Steve! That worked great and was easy to implement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393382#M36285</guid>
      <dc:creator>JayFowler</dc:creator>
      <dc:date>2012-06-14T13:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393383#M36286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having an issue with the infoWindow location updating &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;after&lt;/SPAN&gt;&lt;SPAN&gt; the map.infoWindow.show(..) line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code in this thread is working perfectly and places the infoWindow where it should be, but the event is then propagating into the esri api code, producing exceptions in onAnimate, and subsequently updating the infoWindow location to incorrect locations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to stop this behavior with&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(disruptionsPolyline, "onClick", function(a){
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.stopEvent(a);
&amp;nbsp;&amp;nbsp;&amp;nbsp; addInfoWindowCode(a);
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another curiosity is, if the infoWindow has multiple features in it, switching between them will update the infoWindow to the correct location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393383#M36286</guid>
      <dc:creator>StevenHaslemore</dc:creator>
      <dc:date>2021-12-11T18:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393384#M36287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Personally, I got so frustrated with the InfoWindow (not displaying fully in the area of interest, jumping around when you go to the next feature, etc...) that I ended up using a dojo FloatingPane instead.&amp;nbsp; I had to do a lot more coding and still have some "kinks" to work out but the experience is much nicer. Unfortunately I can not show you all a working sample because our test website is behind a firewall but I can submit some sample code to get you started with at least setting up the floating pane correctly, It will then be up to you to set up the content within the floating pane.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

function createFloatingPane(floatingPaneId, paneTitle, tabContainerID) {
//&amp;nbsp; /*** floating panes ************************************************/
&amp;nbsp; //add a dock
&amp;nbsp; //I don't use the dock for user interaction. You could however make it a region in the container or position it somewhere in the app
&amp;nbsp; //If you display the dock, much like the floating panes, you'll need to do some css and dojo work to make it look and function right
&amp;nbsp; //So why create a dock? If you don't, dojo will do it for you and you won't like the result (see the example at http://dojotoolkit.org/reference-guide/1.7/dojox/layout/FloatingPane.html#dojox-layout-floatingpane)
&amp;nbsp; var dock = new dojox.layout.Dock({
&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "dock",
&amp;nbsp;&amp;nbsp;&amp;nbsp; style: 'position:absolute; bottom:0; right:0; height:0px; width:0px; display:none; z-index:0;'
&amp;nbsp;&amp;nbsp;&amp;nbsp; //class: "dockClass"
&amp;nbsp; }, dojo.create('div', null, dojo.body()));

&amp;nbsp; //add a floating pane
&amp;nbsp; var floatingPaneAttributes = new dojox.layout.FloatingPane({
&amp;nbsp;&amp;nbsp;&amp;nbsp; id: floatingPaneId,
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: paneTitle,
&amp;nbsp;&amp;nbsp;&amp;nbsp; resizable: true, //allow resizing
&amp;nbsp;&amp;nbsp;&amp;nbsp; closable: true, //we never want to close a floating pane - this method destroys the dijit
&amp;nbsp;&amp;nbsp;&amp;nbsp; dockable: true, // yes we want to dock it
&amp;nbsp;&amp;nbsp;&amp;nbsp; dockTo: dock, //if you create the floating pane outside of the same function as the dock, you'll need to set as dijit.byId('dock')
&amp;nbsp;&amp;nbsp;&amp;nbsp; style: 'position:absolute;top:130px;left:402px;width:420;height:450px;visibility:hidden;z-index:999 !important'
&amp;nbsp;&amp;nbsp;&amp;nbsp; //class: "foatingPaneClass"
&amp;nbsp;&amp;nbsp;&amp;nbsp; //style: 'position:absolute;top:130px;left:402px;width:240px;height:320px;visibility:hidden;z-index:999 !important'
&amp;nbsp;&amp;nbsp;&amp;nbsp; //you must set position:absolute; and provide a top and left value (right and bottom DO NOT WORK and will cause the floating pane to appear in strange places depending on browser, for example 125684 pixels right)
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Why top and left? The position of a floating pane is a relationship between the top-left corner of dojo.window and the top-left corner of the dijit
&amp;nbsp;&amp;nbsp;&amp;nbsp; //you must also set a height and width
&amp;nbsp;&amp;nbsp;&amp;nbsp; //z-index is mainly irrelavant as the dijit will control its own z-index, but I always set it to 999 !important to avoid the occasional and mysterious problem of the title and content panes of the floating pane appearing at different z-indexes
&amp;nbsp; }, dojo.create('div', null, dojo.body()));

&amp;nbsp; floatingPaneAttributes.resize({ w: 420, h: 450 });

&amp;nbsp; //add the TabContainer to the Floating Pane
&amp;nbsp; var tc = new dijit.layout.TabContainer({
&amp;nbsp;&amp;nbsp;&amp;nbsp; id: tabContainerID,
&amp;nbsp;&amp;nbsp;&amp;nbsp; tabPosition:'bottom',
&amp;nbsp;&amp;nbsp;&amp;nbsp; style: "height: 100%; width: 100%;",
&amp;nbsp;&amp;nbsp;&amp;nbsp; class: "claro"
&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; // place the tabcontainer into content pane.
&amp;nbsp; // IMPORTANT: SINCE FLOATING PANE IS NOT A "Container", WE MUST ATTACH THE TABCONTAINER TO ITS DOM NODE.
&amp;nbsp; tc.placeAt(floatingPaneAttributes.containerNode);
&amp;nbsp; // call startup to layout everyone.
&amp;nbsp; floatingPaneAttributes.startup();

&amp;nbsp; //Override the close function so the control does not get destroyed
&amp;nbsp; floatingPaneAttributes.close = function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp; floatingPaneAttributes.minimize();
&amp;nbsp;&amp;nbsp;&amp;nbsp; _isFloatingPaneVisible = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; clearSelectedFeatureLayers();
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbarOption = "None";
&amp;nbsp; };

&amp;nbsp; //connect the events
&amp;nbsp; dojo.connect(floatingPaneAttributes, 'onFocus', function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp; dijit.byId(floatingPaneId).bringToTop()
&amp;nbsp; });

&amp;nbsp; dojo.connect(floatingPaneAttributes, 'onShow', function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp; dijit.byId(floatingPaneId).bringToTop();
&amp;nbsp;&amp;nbsp;&amp;nbsp; drawToolbar.deactivate();
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.enableMapNavigation();
&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbarOption = "ModifyAttributes"
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.disableScrollWheelZoom();
&amp;nbsp;&amp;nbsp;&amp;nbsp; navToolbar.activate(esri.toolbars.Navigation.PAN);
&amp;nbsp; });
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that I had to override the floatingPane.close method ... this is a bit of a hack. I know that there is a better way to do this but for now it seems to work.&amp;nbsp; I think the way to do this is to declare a custom floating pane and override my own close functionality but I am not that verse with Dojo to create a custom widget.&amp;nbsp; If someone wants to play with that and show me a better way that would be great!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, note that I connected some events to handle and I also created a TabContainter within the floating pane ...obviously you can add whatever content pane you wish. But the trick to get it load correctly was the use of the .containerNode (tc.placeAt(floatingPaneAttributes.containerNode); )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After I got this to work I was able to hook up a highlight selected fetaure so that the user can see which feature we are currently viewing.&amp;nbsp; I just added a simple graphic to the map with highlight color or interest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like I said lots more work to do but it seems to work mostly OK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:02:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393384#M36287</guid>
      <dc:creator>DianaBenedict</dc:creator>
      <dc:date>2021-12-11T18:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393385#M36288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Diana-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a screenshot of what that looks like that you could share?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm in the same boat and the code provided earlier in this thread didn't work well for me and my own kludgy code to "sense" where my feature is on the map and adjust accordingly is almost more trouble than it's worth.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did &lt;/SPAN&gt;&lt;A href="http://ideas.arcgis.com/ideaView?id=087E00000004T6M&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26category%3DWeb%2BApps%2Band%2BAPIs"&gt;submit an enhancement idea&lt;/A&gt;&lt;SPAN&gt; for ESRI to add an option to map creation so that the API takes care of all this. It's ESRI's code and they know it better than any one of us. Vote if you're so inclined.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 17:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393385#M36288</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-02-07T17:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393386#M36289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;@Diana-&lt;BR /&gt;&lt;BR /&gt;Do you have a screenshot of what that looks like that you could share?&lt;BR /&gt;&lt;BR /&gt;I'm in the same boat and the code provided earlier in this thread didn't work well for me and my own kludgy code to "sense" where my feature is on the map and adjust accordingly is almost more trouble than it's worth.&lt;BR /&gt;&lt;BR /&gt;I did &lt;A href="http://ideas.arcgis.com/ideaView?id=087E00000004T6M&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26category%3DWeb%2BApps%2Band%2BAPIs" rel="nofollow noopener noreferrer" target="_blank"&gt;submit an enhancement idea&lt;/A&gt; for ESRI to add an option to map creation so that the API takes care of all this. It's ESRI's code and they know it better than any one of us. Vote if you're so inclined.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached is a screen shot of the AttributeInspector that I have hooked up to a div in the 1st tab container.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So esentially what I did is the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) create the floating panel as described in previous thread&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) used the AttributeInspector Dijit and set up the layerInfos and FieldInfos as needed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) add the tab page(s) as needed and attached the AttributeInspector to the tab page (see example code below)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) statup the attribute inspector dijit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: I would think that you could use the InfoTemplate object or something else to set up your content as needed in lieu of the attribute inspector (I think) and just attach the content to the tab container (tab page)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) set up a map.onClick event to select my features of interest --&amp;gt; since I am using an AttributeInspector, I do not need to setFeatures to the attribute Inspector ..but here is where you would need to attach the content to the selected features (somehow)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6) onSelection complete --&amp;gt; show the floating pane&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//tabObjectArray is an array of&amp;nbsp; custom object with the following properties
// { TabOrder: tabConfig.GroupOrder, TabTitle: tabConfig.Title, TabContent: "&amp;lt;div id='" + tabConfig.DivHolderId + "' &amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;" }

function addTabPagesToTabControl(tabControl, tabObjectArray) {
&amp;nbsp; require(["dojo/_base/array", "dijit/layout/ContentPane"], function (array, contentPane) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (tabControl.hasChildren()) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var tabControlChildren = tabControl.getChildren();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //work still in progress, need to remove all child nodes (I think)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("tabcontrol has children count = " + tabControlChildren.length);
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; array.forEach(tabObjectArray, function (tabObject) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var tabPage = new contentPane({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: tabObject.TabTitle,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content: tabObject.TabContent
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tabControl.addChild(tabPage);
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp; });
}

function showAttributePane() {
&amp;nbsp; var attributePane = dijit.byId(_floatingPaneId);
&amp;nbsp; if (attributePane) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; disableToolbars();
&amp;nbsp;&amp;nbsp;&amp;nbsp; attributePane.show()
&amp;nbsp; }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like I said, I still need to work through some more stuff here. I don't even have a real framework set up yet. Currently I am just testing different options and figuring out the best way to do things based on our requirements. Then I will worry about getting it all set up correctly within a real framework ... so the code might seem a bit scattered at the moment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393386#M36289</guid>
      <dc:creator>DianaBenedict</dc:creator>
      <dc:date>2021-12-11T18:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-panning map so that infowindow is fully visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393387#M36290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much.&amp;nbsp; This is just what I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 21:37:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/auto-panning-map-so-that-infowindow-is-fully/m-p/393387#M36290</guid>
      <dc:creator>Hernando_CountyProperty_Apprai</dc:creator>
      <dc:date>2016-05-17T21:37:05Z</dc:date>
    </item>
  </channel>
</rss>

