AnsweredAssumed Answered

floatingPane

Question asked by rhyck.m on Sep 16, 2014
Latest reply on Oct 23, 2014 by dstajanesri-ca-esridist

I have a declarative floatingPane that opens on a button click. but once closed, it won't open again. Apparently, the floating pane get destroyed after closing. how do I overwrite that behavior?

 

<div data-dojo-type="dijit/form/Button" id="measure" data-dojo-props="iconClass:'measureIcon'" title="Measure"

                    onclick="showDialogMeasure()">

</div>

 

<!--Dialog Measurements-->

    <div data-dojo-type="dojox.layout.FloatingPane" id="dFloatingPane"

        data-dojo-props="resizable:true, dockable:false, title:'Measurement'"

        style="position: absolute; top: 30%; left: 25%; width: 280px; height: 180px; visibility: hidden; padding: 0; margin: 0;">

 

        <div id="measurementDiv" class="divMeasurement"></div>

 

    </div>

 

 

function showDialogMeasure() {
    if (dijit.byId("dFloatingPane").style.visibility === "hidden") {
        dijit.byId("dFloatingPane").show();
    }
    dijit.byId("dFloatingPane").show();
  
}


Outcomes