FixedSplitterPane.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. define("dojox/mobile/FixedSplitterPane", [
  2. "dojo/_base/array",
  3. "dojo/_base/declare",
  4. "dojo/dom-class",
  5. "dijit/_Contained",
  6. "dijit/_Container",
  7. "dijit/_WidgetBase"
  8. ], function(array, declare, domClass, Contained, Container, WidgetBase){
  9. /*=====
  10. var Contained = dijit._Contained;
  11. var Container = dijit._Container;
  12. var WidgetBase = dijit._WidgetBase;
  13. =====*/
  14. // module:
  15. // dojox/mobile/FixedSplitterPane
  16. // summary:
  17. // A pane widget that is used in a dojox.mobile.FixedSplitter.
  18. return declare("dojox.mobile.FixedSplitterPane",[WidgetBase, Container, Contained],{
  19. // summary:
  20. // A pane widget that is used in a dojox.mobile.FixedSplitter.
  21. // description:
  22. // FixedSplitterPane is a pane widget that is used in a
  23. // dojox.mobile.FixedSplitter. It is a widget, but can be regarded
  24. // as a simple <div> element.
  25. buildRendering: function(){
  26. this.inherited(arguments);
  27. domClass.add(this.domNode, "mblFixedSplitterPane");
  28. },
  29. resize: function(){
  30. array.forEach(this.getChildren(), function(child){
  31. if(child.resize){ child.resize(); }
  32. });
  33. }
  34. });
  35. });