Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3802 closed enhancement (wontfix)

Hidding/Showing/Maximize/Restore a SplitContainer's child programmatically

Reported by: guest Owned by: bill
Priority: high Milestone:
Component: Dijit Version:
Keywords: Cc:
Blocked By: Blocking:


It would be nice to add 4 methods to the SplitContainer?'s class :

  • hideChild:function(widget)
  • showChild:function(widget)
  • maximizeChild:function(widget)
  • restoreChild:function(widget)

Example by tjcrowder: Oh, I can see it. Imagine an optional panel (like the Folders list in your favorite file explorer), which when present should be part of a SplitContainer? but which, again, is optional. In this situation, you want the panel in question and the splitter bar to completely go away when the panel is hidden, leaving only the other panel.

maximizeChild set the child width and height 100% and hide all the other child. restoreChild restore the size of each child as it was before maximizeChild got called.

I tried to look at the code to figure out if I can write a patch quickly but it's not that easy to jump in :)

Could you connect me with the SplitContainer? author ? Then we could talk about it and see if we can get done this enhancement.


Romain Cherchi (rcher) - A new dojo user (0.4.3-ajax)

For more details, plese see

Change History (2)

comment:1 Changed 15 years ago by bill

Resolution: wontfix
Status: newclosed

This isn't something I want to add into Dijit. You could do hideChild() by doing a removeChild() (ie, detaching) the specified child, and show it again by calling addChild() to put it back. maximizeChild() could be done by detaching all the other children, or maybe some other hack about just making that child take up the full space, and appear on top (z-index wise) of the other widgets and the slider-bars themselves.

comment:2 Changed 15 years ago by Adam Peller

(In [9784]) Escape U+200F references, fix empty entries. Fixes #3808, Refs #3802

Note: See TracTickets for help on using tickets.