ext.messagebox_mfc messagebox非模态_ext.messagebox.show

电脑杂谈  发布时间:2017-03-09 13:02:14  来源:网络整理
ext.messageboxext.messagebox

Ext3.3 在ie6上的诡异问题1:点击查询,或者随便弹出Ext.MessageBox.alert()后,下拉菜单的键头会移到左边

修改前代码:

/***********************************************************************
 * 容器panel定义(在容器containerPanel的items中多了层么有指定layout的容器,来盛放infoForm等元素)
 ***********************************************************************/
var containerPanel = new Ext.Panel({
	layout : 'column',
	border : false,
	frame : true,
	applyTo : 'app_main_panel_'+tabPanelIndex,
	id : 'containerPanel_'+tabPanelIndex,
	bodyStyle : 'padding:0px 0px 0px 0px',
	width : talksWidth,
	height : talksHeigth,
	items : [
		   {    id:"formsPanel_"+tabPanelIndex,
				columnWidth : 1,
				items :[
					{
						columnWidth : 1,
						items : infoForm
					}, {
						columnWidth : 1,
						items : [resultForm]
					}, {
						columnWidth : 1,
						items : [detailForm]
					}]
			}]
});

修改后:

/***********************************************************************
 * 容器panel定义(去掉了那么多一层的,问题解决)
 **********************************************************************/
var talksWidth=document.body.clientWidth-663;
var talksHeigth=document.body.clientHeight-455;

var containerPanel = new Ext.Panel({
	layout : 'column',
	border : false,
	frame : true,
	applyTo : 'app_main_panel_'+tabPanelIndex,
	id : 'containerPanel_'+tabPanelIndex,
	bodyStyle : 'padding:0px 0px 0px 0px',
	width : talksWidth,
	height : talksHeigth,
	items : [
			{
				columnWidth : 1,
				items : infoForm
			}, {
				columnWidth : 1,
				items : [resultForm]
			}, {
				columnWidth : 1,
				items : [detailForm]
			}
		   ]
});

总结: Ext3.3在ie6上出现的各种诡异好多都容器的layout属性有关系,出现类似的问题可以定位元素后后一步一步向外层找外部容器是不是指定了layout属性

参考:Ext3.3 在ie6上的诡异问题2:gird 中bbar中定义的按钮诡异消失


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-36644-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...