<?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: When Closing a Dojox Floating Pane - How to Reopen? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-closing-a-dojox-floating-pane-how-to-reopen/m-p/45277#M3943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this &lt;A _jive_internal="true" href="https://community.esri.com/message/422677#422677"&gt;thread&lt;/A&gt; that has some alternative ways to deal with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 May 2015 16:08:31 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2015-05-01T16:08:31Z</dc:date>
    <item>
      <title>When Closing a Dojox Floating Pane - How to Reopen?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-closing-a-dojox-floating-pane-how-to-reopen/m-p/45276#M3942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone!&amp;nbsp; I am currently have an application that uses floating panes.&amp;nbsp; I have a main toolbar that contains the tool icons.&amp;nbsp; When a button is clicked, the floating pane will appear with the tool.&amp;nbsp; However, when I close the floating pane, then click on the button to re-activate, the floating pane will not re-appear.&amp;nbsp; I have read that closing the floating pane destroys the open.&amp;nbsp; Has anyone come up with the solution, so that each time you close the floating pane, you can re-open by clicking on the button?&amp;nbsp; The code I have is simple, both the JavaScript and HTML which is posted below.&amp;nbsp; What modifications do I need to make?&amp;nbsp; I appreciate any feedback.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example for a measuring tool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;JavaScript Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;// Hide Measuring Tool Floating Pane on Load&lt;/P&gt;&lt;P&gt;domStyle.set("measuringToolFloatingPanePick", "visibility", "hidden");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;// Measuring Tool activate Floating Pane on Click&lt;/P&gt;&lt;P&gt;registry.byId("measuringToolButton").on("click", function () {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; openMeasuringToolFloatingPane("measuringToolFloatingPanePick"); &lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;// Open Measuring Tool using Floating Pane Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; function openMeasuringToolFloatingPane(paneId) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mtfp = registry.byId(paneId);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mtfp.show();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;// Measuring Tool&lt;/P&gt;&lt;P&gt;var measurementWidget = new Measurement({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; map: map,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; defaultAreaUnit: esri.Units.SQUARE_FEET, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; defaultLengthUnit: esri.Units.FEET&lt;/P&gt;&lt;P&gt;}, dom.byId("measurementDIV"));&lt;/P&gt;&lt;P&gt;measurementWidget.startup();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;HTML&lt;/STRONG&gt; Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Measuring - Measuring Tool --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;div id="measuringFrame"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div data-dojo-type="dijit/form/Button" id="measuringToolButton" title="Measuring" data-dojo-props="iconClass:'measuringIcon'"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how my floating pane appears.&amp;nbsp; It appears when clicking on the icon (within the red square).&amp;nbsp; When I close, then try to re-open...it won't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 14:59:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-closing-a-dojox-floating-pane-how-to-reopen/m-p/45276#M3942</guid>
      <dc:creator>IanPeebles</dc:creator>
      <dc:date>2015-05-01T14:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: When Closing a Dojox Floating Pane - How to Reopen?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-closing-a-dojox-floating-pane-how-to-reopen/m-p/45277#M3943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this &lt;A _jive_internal="true" href="https://community.esri.com/message/422677#422677"&gt;thread&lt;/A&gt; that has some alternative ways to deal with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 16:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-closing-a-dojox-floating-pane-how-to-reopen/m-p/45277#M3943</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-05-01T16:08:31Z</dc:date>
    </item>
  </channel>
</rss>

