965fae05c5bf7a2d643c75418546b86773879ee0.svn-base 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <html>
  2. <head>
  3. <title>Anchor Layout</title>
  4. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
  5. <!-- GC -->
  6. <!-- LIBS -->
  7. <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
  8. <!-- ENDLIBS -->
  9. <script type="text/javascript" src="../../ext-all.js"></script>
  10. <style type="text/css">
  11. html, body {
  12. font: normal 12px verdana;
  13. margin: 0;
  14. padding: 0;
  15. border: 0 none;
  16. overflow: hidden;
  17. height: 100%;
  18. }
  19. </style>
  20. <script type="text/javascript">
  21. Ext.onReady(function() {
  22. var viewport = new Ext.Viewport({
  23. layout:'anchor',
  24. anchorSize: {width:800, height:600},
  25. items:[{
  26. title:'Item 1',
  27. html:'wtf',
  28. width:800,
  29. anchor:'right 20%'
  30. },{
  31. title:'Item 2',
  32. html:'wtf',
  33. width:300,
  34. anchor:'50% 30%'
  35. },{
  36. title:'Item 3',
  37. html:'wtf',
  38. width:600,
  39. anchor:'-100 50%'
  40. }]
  41. });
  42. });
  43. </script>
  44. </head>
  45. <body>
  46. <script type="text/javascript" src="../examples.js"></script><!-- EXAMPLES -->
  47. </body>
  48. </html>