<?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 Resizing info windows as percent and scrollbars in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/resizing-info-windows-as-percent-and-scrollbars/m-p/147628#M13764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Morning list this is Carlos Vulgamott with the City of Lakewood, Colorado.&amp;nbsp; I am new to the&amp;nbsp; ArcGIS JavaScript API and have a few questions regarding using window resizing percentages vs pixel size on popup info windows and adding scrollbars.&amp;nbsp; I am adding popup window info and the only method I can find for resizing is using the pixel value and I want to use a percent but it???s not allowed.&amp;nbsp; I would also like to add scrollbars to this info window but can???t seem to locate that method within the help.&amp;nbsp; So I am hoping someone could show me a work around or point me in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//RESIZE ALL INFO WINDOWS map.infoWindow.resize(300, 300); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var infoWin = new esri.InfoTemplate("${ADDRESS}", GetMarkerInfo(addressID, section)); graphic.setInfoTemplate(infoWin); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time in advance and have a good weekend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carlos Vulgamott, GISP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GIS Coordinator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;City of Lakewood&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;303-987-7703&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-email-small" href="mailto:carvul@lakewood.org"&gt;carvul@lakewood.org&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2012 13:09:15 GMT</pubDate>
    <dc:creator>CarlosVulgamott</dc:creator>
    <dc:date>2012-08-24T13:09:15Z</dc:date>
    <item>
      <title>Resizing info windows as percent and scrollbars</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/resizing-info-windows-as-percent-and-scrollbars/m-p/147628#M13764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Morning list this is Carlos Vulgamott with the City of Lakewood, Colorado.&amp;nbsp; I am new to the&amp;nbsp; ArcGIS JavaScript API and have a few questions regarding using window resizing percentages vs pixel size on popup info windows and adding scrollbars.&amp;nbsp; I am adding popup window info and the only method I can find for resizing is using the pixel value and I want to use a percent but it???s not allowed.&amp;nbsp; I would also like to add scrollbars to this info window but can???t seem to locate that method within the help.&amp;nbsp; So I am hoping someone could show me a work around or point me in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//RESIZE ALL INFO WINDOWS map.infoWindow.resize(300, 300); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var infoWin = new esri.InfoTemplate("${ADDRESS}", GetMarkerInfo(addressID, section)); graphic.setInfoTemplate(infoWin); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time in advance and have a good weekend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carlos Vulgamott, GISP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GIS Coordinator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;City of Lakewood&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;303-987-7703&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-email-small" href="mailto:carvul@lakewood.org"&gt;carvul@lakewood.org&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 13:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/resizing-info-windows-as-percent-and-scrollbars/m-p/147628#M13764</guid>
      <dc:creator>CarlosVulgamott</dc:creator>
      <dc:date>2012-08-24T13:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing info windows as percent and scrollbars</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/resizing-info-windows-as-percent-and-scrollbars/m-p/147629#M13765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There was some code I was looking at this week about infoWindows and keeping them within the visible screen. Maybe &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/34828-Auto-panning-map-so-that-infowindow-is-fully-visible?highlight=infowindow+screen"&gt;this thread&lt;/A&gt;&lt;SPAN&gt; can help you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, you could try something like this where you base the dimensions on a percentage of the map's overall dimensions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;map.infoWindow.resize(map.width * 0.75,map.height * 0.6);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 21:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/resizing-info-windows-as-percent-and-scrollbars/m-p/147629#M13765</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2012-08-24T21:45:01Z</dc:date>
    </item>
  </channel>
</rss>

