You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.8 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js"><span id='Ext-layout-AutoLayout'>/**
  19. </span> * @class Ext.layout.AutoLayout
  20. * &lt;p&gt;The AutoLayout is the default layout manager delegated by {@link Ext.Container} to
  21. * render any child Components when no &lt;tt&gt;{@link Ext.Container#layout layout}&lt;/tt&gt; is configured into
  22. * a {@link Ext.Container Container}.&lt;/tt&gt;. AutoLayout provides only a passthrough of any layout calls
  23. * to any child containers.&lt;/p&gt;
  24. */
  25. Ext.layout.AutoLayout = Ext.extend(Ext.layout.ContainerLayout, {
  26. <span id='Ext-layout-AutoLayout-property-type'> type: 'auto',
  27. </span>
  28. <span id='Ext-layout-AutoLayout-property-monitorResize'> monitorResize: true,
  29. </span>
  30. <span id='Ext-layout-AutoLayout-method-onLayout'> onLayout : function(ct, target){
  31. </span> Ext.layout.AutoLayout.superclass.onLayout.call(this, ct, target);
  32. var cs = this.getRenderedItems(ct), len = cs.length, i, c;
  33. for(i = 0; i &lt; len; i++){
  34. c = cs[i];
  35. if (c.doLayout){
  36. // Shallow layout children
  37. c.doLayout(true);
  38. }
  39. }
  40. }
  41. });
  42. Ext.Container.LAYOUTS['auto'] = Ext.layout.AutoLayout;
  43. </pre>
  44. </body>
  45. </html>