ie8下datafield 会变形,新版的extjs3.0修正了这个bug
在网上找了一个修改方法
Ext.override(Ext.menu.DateMenu, {
autoWidth: function() {
var el = this.el, ul = this.ul;
if (!el) {
return;
}
var w = this.width;
if (w) {
el.setWidth(w);
} else if (Ext.isIE && !Ext.isIE8&&!Ext.isIE7) {
el.setWidth(this.minWidth);
var t = el.dom.offsetWidth; // force recalc
el.setWidth(ul.getWidth() + el.getFrameWidth("lr"));
}
}
});
通过实验比起作用,调试时候发现extjs2.2.1并没有Ext.isIE8这个属性,不知道其他人是怎么用的?难道版本不一样?
后断点调试发现Ext.isIE6=true 我的机器明明是win7+ie8啊.难道win7的ie8被extjs当作了ie6.
后修改上面判断if (Ext.isIE && !Ext.isIE6) bug修复
2011-05-18:
按照上面的修改发现ie8兼容模式下显示依然不正常,将判断加了&&!Ext.isIE7,解决
分享到:
相关推荐
关于Exjts2.2.1中datefield控件在IE8下显示不全BUG解决如下
This is the appropriate option if you are creating proprietary applications and you are not prepared to distribute and share the source code of your application under the GPL v3 license....
ext-2.2.1
ext2.2.1 js类库 ext2.2.1 js类库 ext2.2.1 js类库 ext2.2.1 js类库
ext-2.2.1稳定的版本ext-2.2.1稳定的版本ext-2.2.1稳定的版本
ext-2.2.1版的压缩包,好不容易找到的
框架+js特效 看得懂javascrip的下,本人自今还在研究~!
Ext JS v2.2.1及帮助文档.zip
maven2.2.1,比较稳定的版本,共享下
extjs2.2.1.rar 开发包下载
jar包,官方版本,自测可用
uTorrent 2.2.1
uTorrent 2.2.1中文版 ,还是老版本稳定。界面安装完即是中文。
Nacos安装包(nacos-2.2.1): nacos-server-2.2.1.tar.gz nacos-server-2.2.1.zip Nacos源码(nacos-2.2.1): nacos-2.2.1.tar.gz nacos-2.2.1.zip
utorrent 2.2.1
使用ext-Gantt开发甘特图和相关资源,demo
curses-2.2.1+utf8-cp310-cp310-win_amd64
目前用于Nexus One的Android2.2.1的升级包,升级与官方OTA升级的方法一致,这很可能是不久由官方提供的OTA升级包.升级后的Nexus One版本号为Android2.2.1。不过目前补丁包刚刚放出暂时还无法知道升级了那些地方。 另...
ext-2.2.1与ext-3.0-rc1 ext-2.2.1与ext-3.0-rc1 ext-2.2.1与ext-3.0-rc1 ext-2.2.1与ext-3.0-rc1
ECharts2.2.1文档