Resize() functionality of ContentPane. If there's a single layout widget child then it will call resize() with the same dimensions as the ContentPane. Otherwise just calls resize on each child.
Also implements basic startup() functionality, where starting the parent will start the children
See the dijit/layout/_ContentPaneResizeMixin reference documentation for more information.
Indicates that this widget will call resize() on it's child widgets when they become visible.
Test if we have exactly one visible widget as a child, and if so assume that we are a container for that widget, and should propagate startup() and resize() calls to it. Skips over things like data stores since they aren't visible.
Returns true if the content is currently shown.
If I am a child of a layout widget then it actually returns true if I've ever been visible, not whether I'm currently visible, since that's much faster than tracing up the DOM/widget tree every call, and at least solves the performance problem on page load by deferring loading hidden ContentPanes until they are first shown
Resize myself according to optional changeSize/resultSize parameters, like a layout widget. Also, since I am an isLayoutContainer widget, each of my children expects me to call resize() or layout() on it.
Should be called on initialization and also whenever we get new content (from an href, or from set('content', ...))... but deferred until the ContentPane is visible
Parameter | Type | Description |
---|---|---|
changeSize | undefined | |
resultSize | undefined |
Resize myself, and call resize() on each of my child layout widgets, either now (if I'm currently visible) or when I become visible
Parameter | Type | Description |
---|---|---|
changeSize | undefined | |
resultSize | undefined |
See dijit/layout/_LayoutWidget.resize()
for description.
Although ContentPane doesn't extend _LayoutWidget, it does implement
the same API.
Parameter | Type | Description |
---|---|---|
changeSize | undefined | |
resultSize | undefined |
See dijit/layout/_LayoutWidget.startup()
for description.
Although ContentPane doesn't extend _LayoutWidget, it does implement
the same API.
Called when the ContentPane is made visible
For a plain ContentPane, this is called on initialization, from startup(). If the ContentPane is a hidden pane of a TabContainer etc., then it's called whenever the pane is made visible.
Does layout/resize of child widget(s)