• window隐藏后tabpanel布局里的border布局显示不正常(已解决)defaults:{hideMode:'offsets'}


    Ext.namespace('com.awd');
    
    com.awd.qkfyPanel = Ext.extend(Ext.Panel, {
    	layout : 'border',
    	border : false,
    	initComponent : function() {
    		Ext.apply(this, {
    			border : false,
    			items : [
    				{region:'west',layout:'fit',bodyStyle:'background:#DFE8F6;border-right:1px solid #8DB2E3',border:false,450,split:true,collapseMode:'mini',collapsible:true}
    				,{region:'center',layout:"fit",border:false,bodyStyle:'border-left:1px solid #8DB2E3'}
    			]
    		});
    		com.awd.qkfyPanel.superclass.initComponent.call(this);
    	}
    
    });
    Ext.reg('qkfy', com.awd.qkfyPanel);
    
    com.awd.addForm = Ext.extend(Ext.Panel, {
    	layout:'border',border:false,
    	initComponent : function() {
    		Ext.apply(this, {
    			items : [
    				{region:'north',collapsible:true,layout:"fit",height:180,minSize:150,maxSize:320,split:true,collapseMode:'mini',collapsible:true,
    					items : [{title:'北表单',border:false,bodyStyle:'background:#DFE8F6;padding:10px;'}]
    				}
    			   , {xtype:"panel",region:'center',autoScroll:true,layout:"fit",border:false,
    					items : {
    							xtype : "tabpanel",activeTab : 0,
    							defaults : {
    								hideMode : 'offsets'
    							},
    							items:[{title:"标签一",border:false,layout:'fit',items:[{xtype:'qkfy'}]},{title:"标签二",border:false,layout:'fit'}]
    						}
    					}]
    		});
    		com.awd.addForm.superclass.initComponent.call(this);
    	}
    });
    
    Ext.reg('addForm', com.awd.addForm);
    
    com.awd.dtlwin = Ext.extend(Ext.Window, {
    			initComponent : function() {
    				Ext.apply(this, {
    								635,height:500,layout:'fit',border:false,closeAction:'hide',modal:true,maximizable:true,constrain:true,collapsible:true
    						});
    				com.awd.dtlwin.superclass.initComponent.call(this);
    			}
    		});
    
    com.awd.test = Ext.extend(Ext.Panel, {
    			layout : 'border',
    			initComponent : function() {
    				Ext.apply(this, {
    							title : '面板布局',
    							buttons:[{text:'谈话登记',cls:'x-btn-text-icon',iconCls:'addicon',handler:this.owin,scope:this}],
    							items:[{title:'北面板',region:'north',collapsible:true,height:258,minSize:150,maxSize:320,split:true,collapseMode:'mini',collapsible:true},{title:'主面板',region:'center',height:300}]
    						});
    				com.awd.test.superclass.initComponent.call(this);
    				this.dtlformpanel = new com.awd.addForm();
    				this.dtlwin = new com.awd.dtlwin({
    							items : this.dtlformpanel,
    							buttons:[{text:'保存',scope:this},{text:'取消',handler:function(){this.dtlwin.hide();},scope:this}]
    				});
    
    			},
    			owin : function() {
    				this.dtlwin.show();
    				this.dtlwin.maximize();
    			}
    		});
    
    Ext.reg('test', com.awd.test);
    
    Ext.onReady(function() {
    	var vp=new Ext.Viewport({layout:'fit',items:{xtype:'test'}})
    });
    
    
  • 相关阅读:
    单体架构还是微服务架构,这是个问题?
    ASP.NET 5中的ASP.NET Bundles跑到哪里去了?
    如何在ASP.NET MVC和EF中使用AngularJS
    在VS 2015中边调试边分析性能
    C#中的Infinity有个小坑
    利用Roslyn构建一个简单的C#交互脚本引擎
    移动端跨平台开发干货分享
    在ASP.NET 5中读取配置文件
    5个让你的SaaS应用大卖的技巧
    大数据技术之_19_Spark学习_08_Spark 机器学习_01_机器学习概述 + 机器学习的相关概念 + 算法常用指标
  • 原文地址:https://www.cnblogs.com/meetrice/p/1798629.html
Copyright © 2020-2023  润新知