<?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 How do I get/set Layerswipe width/height at runtime? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-get-set-layerswipe-width-height-at/m-p/395379#M36470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a project with a LayerSwipe (Javascript API) in it. We allow a toggle between the modes/type of LayerSwipe which starts as a horizontal/vertical (viewport orientation dependant) and toggles to a scope type, but when we toggle back to horizontal/vertical, the slider reverts to the left/top. Does anyone know&amp;nbsp;of attributes methods to get the position of the slider pre-toggle and to set the width/height when toggled back (or at least set it to a default when toggled back)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2019 12:13:09 GMT</pubDate>
    <dc:creator>AndyClark2</dc:creator>
    <dc:date>2019-01-08T12:13:09Z</dc:date>
    <item>
      <title>How do I get/set Layerswipe width/height at runtime?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-get-set-layerswipe-width-height-at/m-p/395379#M36470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a project with a LayerSwipe (Javascript API) in it. We allow a toggle between the modes/type of LayerSwipe which starts as a horizontal/vertical (viewport orientation dependant) and toggles to a scope type, but when we toggle back to horizontal/vertical, the slider reverts to the left/top. Does anyone know&amp;nbsp;of attributes methods to get the position of the slider pre-toggle and to set the width/height when toggled back (or at least set it to a default when toggled back)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 12:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-get-set-layerswipe-width-height-at/m-p/395379#M36470</guid>
      <dc:creator>AndyClark2</dc:creator>
      <dc:date>2019-01-08T12:13:09Z</dc:date>
    </item>
  </channel>
</rss>

