Set window autoscroll to true : Window « Ext JS « JavaScript DHTML






Set window autoscroll to true

  


<html>
<head>
<title>Hello World Window</title>
<link rel="stylesheet" type="text/css" href="ext-3.0.0/resources/css/ext-all.css" />
<script type="text/javascript" src="ext-3.0.0/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext-3.0.0/ext-all.js"></script>

</head>
<body>
<script type="text/javascript">
Ext.onReady(function() {



var childPnl1 = {                                                    
   frame  : true,
   height : 50,
   html   : 'My First Child Panel',
   title  : 'First'
}


var childPnl2 = {                                                     
   xtype  : 'panel',
   width  : 150,
   html   : 'Second child',
   title  : 'Second'
}

var myWin = new Ext.Window({                                          
   height     : 600,
   width      : 600,
   title      : 'A window with a container layout',
   autoScroll : true,                                                
   items      : [                                                     
      childPnl1,
      childPnl2
   ],

});

myWin.show();



});
</script> 
<div id='div1'>asdf</div>
</body>
</html>

   
    
  








Related examples in the same category

1.Create a window and set title, width, height and panel
2.Place html to Ext Window
3.Window with animated layout
4.Call show method to display a window
5.Add two panels to a window
6.Collapsible Panel
7.Set window animation target
8.Set window close action to hide
9.Call show to display the window
10.Call close to hide the window
11.Not resizable
12.Not draggable
13.Not closable
14.No border
15.Dynamically add item to a window
16.Set Window autoScroll to true and anchor size
17.Window layout = anchor
18.Window without border
19.Window anchor size
20.Set window border style
21.Set window label width
22.Set window default field type
23.Fit a panel to a window
24.Set title for a window
25.Set width and height for a window
26.Set item for a window
27.Set layout for a window
28.Create a form control, add to a form and then add the form to the window
29.Set body style for a window
30.Set width, height, minWidth, minHeight for a window
31.Google map window
32.Window: closable, draggable, resizable
33.Plain Window
34.Set only height and width for a window
35.Add html code to a window
36.Add components to a window
37.Add two TextFields to a window
38.Create Ext.form.TextField and add to Window
39.Window with auto height
40.minimizable and maximizable Window
41.Collapsible Window
42.Minimized to Body
43.Window buttonAlign: 'center'
44.Create a very simple modal Window with "autoTabs" from existing markup
45.Add top Toolbar, bottom Toolbar and button to a window