Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dijit/layout/_ContentPaneResizeMixin.js

  • Provides:

    • dijit.layout._ContentPaneResizeMixin
  • Requires:

    • dijit._Contained in common
    • dijit.layout._LayoutWidget in common
  • dijit.layout._ContentPaneResizeMixin

    • type
      Function
    • summary
      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
  • dijit.layout._ContentPaneResizeMixin.doLayout

    • type
      Boolean
    • summary
      - false - don't adjust size of children
      - true - if there is a single visible child widget, set it's size to
      however big the ContentPane is
  • dijit.layout._ContentPaneResizeMixin.isContainer

    • tags:
    • type
      Boolean
    • summary
      Indicates that this widget acts as a "parent" to the descendant widgets.
      When the parent is started it will call startup() on the child widgets.
      See also <code>isLayoutContainer</code>.
  • dijit.layout._ContentPaneResizeMixin.isLayoutContainer

    • tags:
    • type
      Boolean
    • summary
      Indicates that this widget will call resize() on it's child widgets
      when they become visible.
  • dijit.layout._ContentPaneResizeMixin._startChildren

    • summary
      Call startup() on all children including non _Widget ones like dojo.dnd.Source objects
    • type
      Function
  • dijit.layout._ContentPaneResizeMixin.startup

    • summary
      See <code>dijit.layout._LayoutWidget.startup</code> for description.
      Although ContentPane doesn't extend _LayoutWidget, it does implement
      the same API.
    • type
      Function
  • dijit.layout._ContentPaneResizeMixin._childOfLayoutWidget

  • dijit.layout._ContentPaneResizeMixin._needLayout

    • type
      Object
  • dijit.layout._ContentPaneResizeMixin._checkIfSingleChild

    • returns
      or a regexp for hidden elements like script|area|map|etc..
    • summary
      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.
    • type
      Function
  • dijit.layout._ContentPaneResizeMixin._singleChild

  • dijit.layout._ContentPaneResizeMixin.resize

    • parameters:
      • changeSize
      • resultSize
    • summary
      See <code>dijit.layout._LayoutWidget.resize</code> for description.
      Although ContentPane doesn't extend _LayoutWidget, it does implement
      the same API.
    • type
      Function
  • dijit.layout._ContentPaneResizeMixin._resizeCalled

    • type
      Object
  • dijit.layout._ContentPaneResizeMixin._scheduleLayout

    • parameters:
      • changeSize
      • resultSize
    • summary
      Resize myself, and call resize() on each of my child layout widgets, either now
      (if I'm currently visible) or when I become visible
    • type
      Function
  • dijit.layout._ContentPaneResizeMixin._changeSize

  • dijit.layout._ContentPaneResizeMixin._resultSize

  • dijit.layout._ContentPaneResizeMixin._layout

    • parameters:
      • changeSize
      • resultSize
    • summary
      Resize myself according to optional changeSize/resultSize parameters, like a layout widget.
      Also, since I am a Container widget, each of my children expects me to
      call resize() or layout() on them.
      
      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
    • type
      Function
  • dijit.layout._ContentPaneResizeMixin.containerNode

  • dijit.layout._ContentPaneResizeMixin._contentBox

    • type
      Object
  • dijit.layout._ContentPaneResizeMixin._layoutChildren

    • type
      Function
  • dijit.layout._ContentPaneResizeMixin._isShown

    • returns
      for TitlePane, etc.
    • summary
      Returns true if the content is currently shown.
    • description
      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
    • type
      Function
  • dijit.layout._ContentPaneResizeMixin.domNode

  • dijit.layout._ContentPaneResizeMixin.domNode.parentNode

  • dijit.layout._ContentPaneResizeMixin._onShow

    • summary
      Called when the ContentPane is made visible
    • description
      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)
    • type
      Function
  • dijit.layout._ContentPaneResizeMixin._wasShown

    • type
      Object
  • dijit.layout

    • type
      Object
  • dijit

    • type
      Object