dojox/mobile/FixedSplitter.js

  • Provides:

    • dojox.mobile.FixedSplitter
  • Requires:

    • dijit._WidgetBase in common in project dijit
  • dojox.mobile.FixedSplitter

    • type
      Function
    • chains:
      • dijit._WidgetBase: (prototype)
      • dijit._WidgetBase: (call)
    • summary
  • dojox.mobile.FixedSplitter.orientation

    • summary
  • dojox.mobile.FixedSplitter.isContainer

    • summary
  • dojox.mobile.FixedSplitter.buildRendering

    • type
      Function
    • source: [view]
        this.domNode = this.containerNode = this.srcNodeRef ? this.srcNodeRef : dojo.doc.createElement("DIV");
        dojo.addClass(this.domNode, "mblFixedSpliter");
    • summary
  • dojox.mobile.FixedSplitter.startup

    • type
      Function
    • source: [view]
        var children = dojo.filter(this.domNode.childNodes, function(node){ return node.nodeType == 1; });
        dojo.forEach(children, function(node){
         dojo.addClass(node, "mblFixedSplitterPane"+this.orientation);
        }, this);


        dojo.forEach(this.getChildren(), function(child){if(child.startup){child.startup();}});
        this._started = true;


        var _this = this;
        setTimeout(function(){
         _this.resize();
        }, 0);


        var parent = dijit.getEnclosingWidget(this.domNode.parentNode);
        if(!parent){
         if(dojo.global.onorientationchange !== undefined){
          this.connect(dojo.global, "onorientationchange", "resize");
         }else{
          this.connect(dojo.global, "onresize", "resize");
         }
        }
    • summary
  • dojox.mobile.FixedSplitter.resize

    • type
      Function
    • parameters:
      • changeSize: (typeof )
      • resultSize: (typeof )
    • source: [view]
        this.layout();
    • summary
  • dojox.mobile.FixedSplitter.layout

    • type
      Function
    • source: [view]
        var sz = this.orientation == "H" ? "w" : "h";
        var children = dojo.filter(this.domNode.childNodes, function(node){ return node.nodeType == 1; });
        var offset = 0;
        for(var i = 0; i < children.length; i++){
         dojo.marginBox(children[i], this.orientation == "H" ? {l:offset} : {t:offset});
         if(i < children.length - 1){
          offset += dojo.marginBox(children[i])[sz];
         }
        }


        var l = dojo.marginBox(this.domNode)[sz] - offset;
        var props = {};
        props[sz] = l;
        dojo.marginBox(children[children.length - 1], props);


        dojo.forEach(this.getChildren(), function(child){
         if(child.resize){ child.resize(); }
        });
    • summary
  • dojox.mobile.FixedSplitter.domNode

    • summary
  • dojox.mobile.FixedSplitter._started

    • summary
  • dojox.mobile.FixedSplitterPane

    • type
      Function
    • chains:
      • dijit._WidgetBase: (prototype)
      • dijit._WidgetBase: (call)
    • summary
  • dojox.mobile.FixedSplitterPane.buildRendering

    • type
      Function
    • source: [view]
        this.inherited(arguments);
        dojo.addClass(this.domNode, "mblFixedSplitterPane");
    • summary
  • dojox.mobile

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary