<?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: Map shift with refresh in Internet Explorer 8 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55541#M4884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've had some issues with 3.5 and IE8 and having different results on page refreshes. It seems to me that dojo/ready function happens slightly too fast for IE8. Anyway, wrapping map initialization with a setTimeout worked for me.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require([
&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/ready"
], function (ready) {&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; ready(function () {&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //ie8 fix -- ready() called slightly too fast for ie8?
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setTimeout(function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initMap(); // create map and such after short timeout&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, 10);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
})&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has solved another problem I was having with my code where setting the map extent to a layer's extent wasn't always working correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 22:06:54 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2021-12-10T22:06:54Z</dc:date>
    <item>
      <title>Map shift with refresh in Internet Explorer 8</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55537#M4880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an app (arcgis javascript 3.5) that displays a map inside a dojo content pane as the center region of a bordercontainer. When I hit refresh (F5) in IE8, the map shifts a little to the left. This does not happen everytime for a refresh but it did happen the last 5 times while I was creating screen shots! The amount of shift changes with the size of the window... the further out I am zoomed, the larger the shift. For the screen shots, I did not make any changes, I just hit F5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone else run into this issue? I know this is not a problem in other browsers but, need to have this app work in IE8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Janice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 21:31:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55537#M4880</guid>
      <dc:creator>JaniceBaird</dc:creator>
      <dc:date>2013-08-05T21:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Map shift with refresh in Internet Explorer 8</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55538#M4881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: svakil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make sure you map is properly formatted in a content pane under bordercontainer. Providing some code or a simple jsfiddle or a link to your application will be helpful to look into this further.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 23:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55538#M4881</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-05T23:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Map shift with refresh in Internet Explorer 8</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55539#M4882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've had some issues with 3.5 and IE8 and having different results on page refreshes. It seems to me that dojo/ready function happens slightly too fast for IE8. Anyway, wrapping map initialization with a setTimeout worked for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;require([&amp;nbsp; "dojo/ready" ], function (ready) {&amp;nbsp;&amp;nbsp; ready(function () {&amp;nbsp; &amp;nbsp; //ie8 fix -- ready() called slightly too fast for ie8? &amp;nbsp; setTimeout(function () { &amp;nbsp;&amp;nbsp; initMap(); // create map and such after short timeout&amp;nbsp;&amp;nbsp; &amp;nbsp; }, 10);&amp;nbsp;&amp;nbsp;&amp;nbsp; }); })&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 19:24:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55539#M4882</guid>
      <dc:creator>MatthewLofgren</dc:creator>
      <dc:date>2013-08-08T19:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Map shift with refresh in Internet Explorer 8</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55540#M4883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: janiceb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been pulling my hair out with adding timeouts, deferreds, etc. Even after adding the dojo/ready, I needed to make sure it was in the right place. Finally, I got dojo/ready where it needed to be and this seems to have fixed the issue of the map shifting to the left with refreshes or loading different maps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am very new to dojo and am trying to keep the learning and using part in sync but that is proving to be difficult!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code was not pretty to start with and with all my testing it turned into an ugly mess! With a little cleaning up of all the unnecessary timeouts and other things I tried, everything is still working as I would like!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Janice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 20:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55540#M4883</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-08-08T20:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Map shift with refresh in Internet Explorer 8</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55541#M4884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've had some issues with 3.5 and IE8 and having different results on page refreshes. It seems to me that dojo/ready function happens slightly too fast for IE8. Anyway, wrapping map initialization with a setTimeout worked for me.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require([
&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/ready"
], function (ready) {&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; ready(function () {&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //ie8 fix -- ready() called slightly too fast for ie8?
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setTimeout(function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initMap(); // create map and such after short timeout&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, 10);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
})&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has solved another problem I was having with my code where setting the map extent to a layer's extent wasn't always working correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:06:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-shift-with-refresh-in-internet-explorer-8/m-p/55541#M4884</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-10T22:06:54Z</dc:date>
    </item>
  </channel>
</rss>

