Web UI for ARGUS server
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.

42 lines
1.4 KiB

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>The source code</title>
  5. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  6. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  7. </head>
  8. <body onload="prettyPrint();">
  9. <pre class="prettyprint lang-js">/*!
  10. * Ext JS Library 3.3.1
  11. * Copyright(c) 2006-2010 Sencha Inc.
  12. * licensing@sencha.com
  13. * http://www.sencha.com/license
  14. */
  15. <div id="cls-Ext.layout.AutoLayout"></div>/**
  16. * @class Ext.layout.AutoLayout
  17. * <p>The AutoLayout is the default layout manager delegated by {@link Ext.Container} to
  18. * render any child Components when no <tt>{@link Ext.Container#layout layout}</tt> is configured into
  19. * a {@link Ext.Container Container}.</tt>. AutoLayout provides only a passthrough of any layout calls
  20. * to any child containers.</p>
  21. */
  22. Ext.layout.AutoLayout = Ext.extend(Ext.layout.ContainerLayout, {
  23. type: 'auto',
  24. monitorResize: true,
  25. onLayout : function(ct, target){
  26. Ext.layout.AutoLayout.superclass.onLayout.call(this, ct, target);
  27. var cs = this.getRenderedItems(ct), len = cs.length, i, c;
  28. for(i = 0; i < len; i++){
  29. c = cs[i];
  30. if (c.doLayout){
  31. // Shallow layout children
  32. c.doLayout(true);
  33. }
  34. }
  35. }
  36. });
  37. Ext.Container.LAYOUTS['auto'] = Ext.layout.AutoLayout;
  38. </pre>
  39. </body>
  40. </html>