<html>
<head>
- <title>Column Layout</title>
- <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
-
- <!-- GC -->
- <!-- LIBS -->
- <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
- <!-- ENDLIBS -->
-
- <script type="text/javascript" src="../../ext-all.js"></script>
-
- <!--<script language="javascript" src="../grid/PropsGrid.js"></script>-->
- <style type="text/css">
- html, body {
+ <title>Column Layout</title>
+ <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
+ <style type="text/css">
+ html, body {
font:normal 12px verdana;
margin:0;
padding:0;
overflow:hidden;
height:100%;
}
- .x-panel-body p {
- margin:5px;
- }
+ .x-panel-body p {
+ margin:5px;
+ }
.x-column-layout-ct .x-panel {
margin-bottom:5px;
}
background-image:url(../shared/icons/fam/folder_go.png) !important;
}
</style>
- <script type="text/javascript">
+<script type="text/javascript" src="../../bootstrap.js"></script>
+<script type="text/javascript" src="../shared/examples.js"></script><!-- EXAMPLES -->
+<script type="text/javascript">
+Ext.require(['*']);
Ext.onReady(function(){
// it is generally best to disable state management as dynamically-generated ids
// can change across page loads, leading to unpredictable results. The developer
// should ensure that stable state ids are set for stateful components in real apps.
- Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
+ Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));
- var viewport = new Ext.Viewport({
+ var viewport = Ext.create('Ext.Viewport', {
layout:'border',
items:[{
region:'west',
margins:'35 5 5 0',
layout:'column',
autoScroll:true,
- items:[{
- columnWidth:.33,
+ defaults: {
+ layout: 'anchor',
+ defaults: {
+ anchor: '100%'
+ }
+ },
+ items: [{
+ columnWidth: 1/3,
baseCls:'x-plain',
bodyStyle:'padding:5px 0 5px 5px',
items:[{
html: Ext.example.shortBogusMarkup
}]
},{
- columnWidth:.33,
+ columnWidth: 1/3,
baseCls:'x-plain',
bodyStyle:'padding:5px 0 5px 5px',
items:[{
html: Ext.example.shortBogusMarkup
}]
},{
- columnWidth:.33,
+ columnWidth: 1/3,
baseCls:'x-plain',
bodyStyle:'padding:5px',
items:[{
}]
});
});
- </script>
+</script>
</head>
<body>
-<script type="text/javascript" src="../shared/examples.js"></script><!-- EXAMPLES -->
- </body>
-</html>
\ No newline at end of file
+</body>
+</html>