Viewport.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Ext.define('KitchenSink.view.Viewport', {
  2. extend: 'Ext.container.Viewport',
  3. requires: [
  4. 'Ext.layout.container.Border',
  5. 'Ext.layout.container.HBox',
  6. 'KitchenSink.view.List'
  7. ],
  8. layout: 'border',
  9. items: [
  10. {
  11. region: 'north',
  12. xtype : 'pageHeader'
  13. },
  14. {
  15. region: 'center',
  16. layout: {
  17. type : 'hbox',
  18. align: 'stretch'
  19. },
  20. items: [
  21. {
  22. width: 250,
  23. bodyPadding: 5,
  24. xtype: 'exampleList'
  25. },
  26. {
  27. cls: 'x-example-panel',
  28. flex: 1,
  29. title: ' ',
  30. id : 'examplePanel',
  31. layout: {
  32. type: 'vbox',
  33. align: 'center',
  34. pack: 'center'
  35. },
  36. overflowY: 'auto',
  37. bodyPadding: 0
  38. }
  39. ]
  40. },
  41. {
  42. xtype: 'pageHeader',
  43. region: 'south',
  44. height: 13
  45. }
  46. ]
  47. });