<?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 in hidden accordian no loading in Firefox in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70548#M6252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you're working with an embedded map, would you have in something like the function from Kelly's &lt;A _jive_internal="true" href="https://community.esri.com/message/447956#447956"&gt;post&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2015 20:32:01 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2015-01-15T20:32:01Z</dc:date>
    <item>
      <title>Map in hidden accordian no loading in Firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70543#M6247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are working on implementing a responsive design to our website.&amp;nbsp; Much of our content is now nested in css-based accordian panes.&amp;nbsp; We have some maps that are nested in accordion panes.&amp;nbsp; In Firefox (I have 31.4 ESR version), the map won't load if the accordion pane is originally collapsed.&amp;nbsp;&amp;nbsp; The problem appears to be that the map frame is missing dimension when the parent container is hidden.&amp;nbsp; Internet explorer must handle hidden content differently; it works fine in IE9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following example should demonstrate the problem. As it is, the example will fail in FF.&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/uo0f0xzn/2/" title="http://jsfiddle.net/uo0f0xzn/2/"&gt;Edit fiddle - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our website content manager would like the map to be collapsed when the page opens. I'm not sure how to make this happen in FF.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 19:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70543#M6247</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2015-01-15T19:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Map in hidden accordian no loading in Firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70544#M6248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it work if you use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;.hiddenContent {
&amp;nbsp;&amp;nbsp;&amp;nbsp; visibility:hidden;
}
.visibleContent {
&amp;nbsp;&amp;nbsp;&amp;nbsp; visibility:visible;
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70544#M6248</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-12-10T22:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Map in hidden accordian no loading in Firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70545#M6249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firefox returns some errors that IE and Chrome don't show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="firefox.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/51566_firefox.png" style="width: 620px; height: 294px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 20:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70545#M6249</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-01-15T20:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Map in hidden accordian no loading in Firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70546#M6250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really.  The map works, but the container doesn’t collapse.  It’s just hidden.  http://jsfiddle.net/uo0f0xzn/3/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 20:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70546#M6250</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2015-01-15T20:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Map in hidden accordian no loading in Firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70547#M6251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup.  This is the same error you get in all browser if you try loading a map without a defined height and width.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 20:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70547#M6251</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2015-01-15T20:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Map in hidden accordian no loading in Firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70548#M6252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you're working with an embedded map, would you have in something like the function from Kelly's &lt;A _jive_internal="true" href="https://community.esri.com/message/447956#447956"&gt;post&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 20:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70548#M6252</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-01-15T20:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Map in hidden accordian no loading in Firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70549#M6253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm….it may indeed.  The map I have in the IFrame uses a load script.  I think can update the load script to defer map loading if the parent(s) are not visible when the page loads.  I like it.  I’ll give it a shot.  Good find!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 21:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70549#M6253</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2015-01-15T21:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Map in hidden accordian no loading in Firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70550#M6254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you'll have to wait until the div you want to put your map into has an appropriate size.&amp;nbsp; This sample doesn't use an iframe, but shows the basic concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/73tqdkkx/4/" title="http://jsfiddle.net/73tqdkkx/4/"&gt;map in hidden container - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 22:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70550#M6254</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2015-01-15T22:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Map in hidden accordian no loading in Firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70551#M6255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good example John.&amp;nbsp; I would, however, like something a little more generic since I have a number of differently developers that have implemented my map code in a number of different ways.&amp;nbsp; I use the load script to handle idiosyncrasies as they crop up.&amp;nbsp; Ideally I would like to check if the parent div is displayed when the createMap function is called and add a listener for a generic listener for a style change if it's not.&amp;nbsp; Unfortunately, most browser don't support the onresize event on dom elements.&amp;nbsp; An iterative timeout is the best I could come up with.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/73tqdkkx/5/" title="http://jsfiddle.net/73tqdkkx/5/"&gt;map in hidden container - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 23:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70551#M6255</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2015-01-15T23:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Map in hidden accordian no loading in Firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70552#M6256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bill, I guess I'm fortunate as I almost always work within the dojo/layout framework for my UIs. The dojo/layout/* containers provide events that inform me when a child pane is selected and it's within these events that I place my map creation code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 00:08:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-in-hidden-accordian-no-loading-in-firefox/m-p/70552#M6256</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2015-01-16T00:08:01Z</dc:date>
    </item>
  </channel>
</rss>

