<?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 Mobile Template in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-template/m-p/509496#M47359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added dynamic map service to the mobile template from esri.&lt;/P&gt;&lt;P&gt;However, I see couple issues.&lt;/P&gt;&lt;P&gt;1. map does not cover full screen (when vertical).&lt;/P&gt;&lt;P&gt;2. background shows black on mobile browser (chrome).&lt;/P&gt;&lt;P&gt;Here is &lt;A href="http://gis.wiu.edu/java/mobile/"&gt;a site&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Any advice would be great.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keisuke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 14:51:17 GMT</pubDate>
    <dc:creator>KeisukeNozaki</dc:creator>
    <dc:date>2014-09-17T14:51:17Z</dc:date>
    <item>
      <title>Mobile Template</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-template/m-p/509496#M47359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added dynamic map service to the mobile template from esri.&lt;/P&gt;&lt;P&gt;However, I see couple issues.&lt;/P&gt;&lt;P&gt;1. map does not cover full screen (when vertical).&lt;/P&gt;&lt;P&gt;2. background shows black on mobile browser (chrome).&lt;/P&gt;&lt;P&gt;Here is &lt;A href="http://gis.wiu.edu/java/mobile/"&gt;a site&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Any advice would be great.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keisuke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 14:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-template/m-p/509496#M47359</guid>
      <dc:creator>KeisukeNozaki</dc:creator>
      <dc:date>2014-09-17T14:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile Template</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-template/m-p/509497#M47360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to fix the height element of this div:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="nodeLabelBox repTarget"&gt;&amp;lt;&lt;SPAN class="nodeTag"&gt;div&lt;/SPAN&gt;&lt;SPAN class="editGroup nodeAttr"&gt; &lt;SPAN class="nodeName editable"&gt;id&lt;/SPAN&gt;="&lt;SPAN class="nodeValue editable"&gt;mapDiv_root&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="editGroup nodeAttr"&gt; &lt;SPAN class="nodeName editable"&gt;class&lt;/SPAN&gt;="&lt;SPAN class="nodeValue editable"&gt;container&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="editGroup nodeAttr"&gt; &lt;SPAN class="nodeName editable"&gt;style&lt;/SPAN&gt;="&lt;SPAN class="nodeValue editable"&gt;width: 1600px; &lt;STRONG&gt;height: 400px&lt;/STRONG&gt;; direction: ltr;&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="nodeBracket editable insertBefore"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="nodeLabelBox repTarget"&gt;&lt;SPAN class="nodeBracket editable insertBefore"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="nodeLabelBox repTarget"&gt;&lt;SPAN class="nodeBracket editable insertBefore"&gt;It doesn't look like its part of your html file so it'll be a change to the css. You should make it something like 800 or 900 px in height.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="nodeLabelBox repTarget"&gt;&lt;SPAN class="nodeBracket editable insertBefore"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 17:44:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-template/m-p/509497#M47360</guid>
      <dc:creator>deleted-user-Yo2nEyVX5Kjk</dc:creator>
      <dc:date>2014-09-29T17:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile Template</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-template/m-p/509498#M47361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the css, it uses relative.&lt;/P&gt;&lt;P&gt;Width is set for 100%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;html, body, .mblView {&lt;/P&gt;&lt;P&gt;&amp;nbsp; height: 100%;&lt;/P&gt;&lt;P&gt;&amp;nbsp; margin: 0px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 0px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; width: 100%;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#mapView {&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*height: 100%;*/&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#map {&lt;/P&gt;&lt;P&gt;&amp;nbsp; position:relative;&lt;/P&gt;&lt;P&gt;&amp;nbsp; width: 100%;&lt;/P&gt;&lt;P&gt;&amp;nbsp; height: 100%;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 19:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-template/m-p/509498#M47361</guid>
      <dc:creator>KeisukeNozaki</dc:creator>
      <dc:date>2014-09-30T19:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile Template</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-template/m-p/509499#M47362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using position relative is fine but you didn't position its container (mapContainer) so your position:relative doesn't mean anything.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You need to add rules to parent elements if you want to use position:relative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in the console:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;TypeError: dom.byId(...) is null&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;dom.byId("map").style.height = availHeight + "px";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no dom element with the id of map. You use "mapDiv". There's a map class though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On second look, the following snippet doesn't do anything at all because you are assigning this to a dom node with an ID of map, not a class of map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;#map {&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; position:relative;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; width: 100%;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; height: 100%;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 16:46:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-template/m-p/509499#M47362</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-10-01T16:46:33Z</dc:date>
    </item>
  </channel>
</rss>

