Permalink
Browse files

去除最外层多出的border布局

  • Loading branch information...
1 parent b317c24 commit f718a67421222cf8cd5ca157f056b81f9bb65191 @mouse-lin committed Mar 22, 2012
@@ -63,13 +63,13 @@
border : false,
bodyStyle : "background : none"
});
-
+ Pf.pages.currentInstance.region = "center";
Pf.viewPage = new Ext.Viewport({
layout : 'border',
autoScroll : true,
items : [
//{ height : 30, region: 'north',border:false },
- { region: 'center',layout : 'border', border: false,items: Pf.pages.currentInstance },
+ Pf.pages.currentInstance,
menuPanel
]
});
@@ -1,14 +1,9 @@
Pf.settings.homeIndex = {
panel: function(){
- var panel = new Ext.Panel({
+ var panel = new Ext.form.FormPanel({
autoScroll : true,
- layout: "anchor",
title: "nihao",
frame: true,
- items: new Ext.form.FormPanel({
- anchor: "100 100",
- title: '测试',
- })
});
return panel;
}
@@ -1 +1,25 @@
Ext.ns("Pf.classes.student");
+var store_name = new Ext.data.JsonStore({
+ fields: [
+
+ ],
+ root: 'content',
+ url: 'store_url',
+ totalProperty:'total',
+ method:'GET',
+});
+var cm = new Ext.grid.ColumnModel([
+ new Ext.grid.RowNumberer(),
+ { header: '', sortable: true, dataIndex: '',editor:new Ext.form.TextField()},
+ { header: '', sortable: true, dataIndex: '',editor:new Ext.form.TextField()},
+]);
+var tbar = [
+ { iconCls: '', text: '', handler: function(){ },
+];
+var grid_name = new Ext.grid.EditorGridPanel({
+ viewConfig: { forceFit: true },
+ store: store_name ,
+ cm: cm,
+ tbar: tbar,
+)};
+return grid_name ;

0 comments on commit f718a67

Please sign in to comment.