AnsweredAssumed Answered

Change height of foldable div dinamically

Question asked by miribsystematics-co-il-esridist Employee on Feb 9, 2015
Latest reply on Feb 9, 2015 by blake.terhune

Hi everyone,


I develop a Custom Edit widget for one of our clients. He wants the window Info to open in the buttom left part of the map.

He also wants the Edit as a foldable widget (and not a button on the map).


I can do it by:


      onOpen: function() {
        this.layers = [];
        this._onshowinfowin = on(, "show", this.showInfoWin); 

      showInfoWin: function(evt){ 
        this.location.x = + ( - / 12 ;
        this.location.y =;
        this._mapInfoWin =; 
          query(".titleButton.close",'display', 'none'); 
          query(".titleButton.maximize",'display', 'none'); 
          query(".titleButton.close",'display', null); 
          query(".titleButton.maximize",'display', null); 

The problem is that the foldable widget's height takes the whole place and hides the infoWindow.

Attach with a screenshot that demonstrates the problem


What is the best way to handle with it? I see few possibilities:

1. Fire the fold-up/fold down button  every time this infoWindow is opened. If that's the way, how to do it?

2. Reduce the height all the foldable widgets.

3. Reduce the height of only the Editor foldable widget (preferable). If that's the way, how to do it?

4. Any other option?



Thanks so much,