<?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 Hidden iframe map display issues in 3.14 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hidden-iframe-map-display-issues-in-3-14/m-p/669617#M62446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cross-posted this in &lt;A href="https://community.esri.com/thread/72123"&gt;Hiding the map: problems with building a mobile application with AngularJS&lt;/A&gt; as a side discussion, but thought it would be best to ask a formal question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a similar issue as discussed/resolved in &lt;A href="https://community.esri.com/message/537000"&gt;Re: How to properly resize map from hidden iframe&lt;/A&gt;​; however, Bjorn mentioned this issue was probably fixed in 3.14 - I am unsure if this is something new or maybe even unique to my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am embedding a map within an iframe inside of a hidden container div; I've dealt with this bug since 3.8. Essentially, after page load, users can elect to toggle a div, which should render/hide the map. This works beautifully if the container is rendered to the dom and visible on the page on first load, but it chokes when the container is hidden:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image" src="https://community.esri.com/legacyfs/online/124312_pastedImage_0.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, the first place it seems to be bubbling-up is in "dojox/gfx/_base". When the &lt;EM&gt;_addLabels&lt;/EM&gt; function in "LabelLayer.js" is called, we go out to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_14407856711314713 jive_macro_code jive_text_macro" data-renderedposition="774_8_912_16" jivemacro_uid="_14407856711314713"&gt;&lt;P&gt;this._addLabel(h, b, a.renderer, c, e, g, k)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, we try to calculate label height:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_14407856780356967 jive_macro_code jive_text_macro" data-renderedposition="853_8_912_16" jivemacro_uid="_14407856780356967" modifiedtitle="true"&gt;&lt;P&gt;e.labelHeight = l.getHeight() / 2;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where it chokes. "l" has font info, but font size is undefined. So, the call to &lt;EM&gt;getHeight() &lt;/EM&gt;in&lt;EM&gt; &lt;EM&gt;"esri/symbols/TextSymbol" &lt;/EM&gt;&lt;/EM&gt;sends an undefined font size to &lt;EM&gt;normalizedLength()&lt;/EM&gt; in "dojox/gfx/_base", which gives me "Unable to get property 'length' of undefined or null reference" in the console. All because the map container div is collapsed/hidden - I think the map is confused as it doesn't have a reference to size things appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working around this by toggling the container on, then quickly collapsing the div after page load. It looks kludgy, but works well, although it gets complicated as there are maps throughout the application, and user settings are persisted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to accomplish this? I have some resize logic that works well elsewhere, but seems not to cut it here - I've reviewed the resolution in &lt;A href="https://community.esri.com/message/537000"&gt;Re: How to properly resize map from hidden iframe&lt;/A&gt; without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated! If this is a bug in 3.14, maybe Esri will fix it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2015 18:29:07 GMT</pubDate>
    <dc:creator>ChrisSmith7</dc:creator>
    <dc:date>2015-08-28T18:29:07Z</dc:date>
    <item>
      <title>Hidden iframe map display issues in 3.14</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hidden-iframe-map-display-issues-in-3-14/m-p/669617#M62446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cross-posted this in &lt;A href="https://community.esri.com/thread/72123"&gt;Hiding the map: problems with building a mobile application with AngularJS&lt;/A&gt; as a side discussion, but thought it would be best to ask a formal question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a similar issue as discussed/resolved in &lt;A href="https://community.esri.com/message/537000"&gt;Re: How to properly resize map from hidden iframe&lt;/A&gt;​; however, Bjorn mentioned this issue was probably fixed in 3.14 - I am unsure if this is something new or maybe even unique to my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am embedding a map within an iframe inside of a hidden container div; I've dealt with this bug since 3.8. Essentially, after page load, users can elect to toggle a div, which should render/hide the map. This works beautifully if the container is rendered to the dom and visible on the page on first load, but it chokes when the container is hidden:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image" src="https://community.esri.com/legacyfs/online/124312_pastedImage_0.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, the first place it seems to be bubbling-up is in "dojox/gfx/_base". When the &lt;EM&gt;_addLabels&lt;/EM&gt; function in "LabelLayer.js" is called, we go out to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_14407856711314713 jive_macro_code jive_text_macro" data-renderedposition="774_8_912_16" jivemacro_uid="_14407856711314713"&gt;&lt;P&gt;this._addLabel(h, b, a.renderer, c, e, g, k)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, we try to calculate label height:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_14407856780356967 jive_macro_code jive_text_macro" data-renderedposition="853_8_912_16" jivemacro_uid="_14407856780356967" modifiedtitle="true"&gt;&lt;P&gt;e.labelHeight = l.getHeight() / 2;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where it chokes. "l" has font info, but font size is undefined. So, the call to &lt;EM&gt;getHeight() &lt;/EM&gt;in&lt;EM&gt; &lt;EM&gt;"esri/symbols/TextSymbol" &lt;/EM&gt;&lt;/EM&gt;sends an undefined font size to &lt;EM&gt;normalizedLength()&lt;/EM&gt; in "dojox/gfx/_base", which gives me "Unable to get property 'length' of undefined or null reference" in the console. All because the map container div is collapsed/hidden - I think the map is confused as it doesn't have a reference to size things appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working around this by toggling the container on, then quickly collapsing the div after page load. It looks kludgy, but works well, although it gets complicated as there are maps throughout the application, and user settings are persisted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to accomplish this? I have some resize logic that works well elsewhere, but seems not to cut it here - I've reviewed the resolution in &lt;A href="https://community.esri.com/message/537000"&gt;Re: How to properly resize map from hidden iframe&lt;/A&gt; without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated! If this is a bug in 3.14, maybe Esri will fix it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 18:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hidden-iframe-map-display-issues-in-3-14/m-p/669617#M62446</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-08-28T18:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hidden iframe map display issues in 3.14</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hidden-iframe-map-display-issues-in-3-14/m-p/669618#M62447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should also mention this occurs in IE11 - the map loads well in Chrome without any special handling.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 22:18:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hidden-iframe-map-display-issues-in-3-14/m-p/669618#M62447</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-08-28T22:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hidden iframe map display issues in 3.14</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hidden-iframe-map-display-issues-in-3-14/m-p/669619#M62448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't able to find an easy solution - I ended-up just showing it briefly, then hiding the container as a workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 18:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hidden-iframe-map-display-issues-in-3-14/m-p/669619#M62448</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-09-17T18:57:05Z</dc:date>
    </item>
  </channel>
</rss>

