Rev 8: Toolbar issues with IE7? - Ext JS

IE7按钮渲染问题修复
本文讨论了在IE7浏览器中遇到的按钮渲染问题及解决方案。特别是在使用特定DOCTYPE声明时出现的问题,并分享了一个CSS hack来解决按钮文本被截断的情况。
Hi Jack,

Great work! Thanks for all your efforts on this.

I think there may be a couple of regressions that have crept into the last couple of builds that you might want to know about. If you take a look at http://www.yui-ext.com/deploy/ext-1....enu/menus.html with IE7, you'll see a gap has appeared in the buttons that are hovered/selected ("Toggle Me" button for example). Works fine in Firefox though.

I also no longer seem to be able to use either of the following doctypes in pages containing the toolbars in IE7. The rendering of the buttons seem a little strange when added. This worked fine for me in earlier builds, and still works fine in firefox.

Add either of the following to menus.html to demonstrate the issue:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Keep up the good work - your efforts are most appreciated.

Thanks,

John
Reply With Quote
  #2  
Old 02-22-2007, 04:35 AM
Default

What a nightmare. I am working on it.
Reply With Quote
  #3  
Old 02-22-2007, 05:49 AM
Default

This is fixed in the latest Rev. It still isn't perfect for all buttons, and I will continue to try to find a more reliable workaround.

IE7 in strict mode is full of bugs that are difficult to work around. I hope the IE team addresses some of them soon.
Reply With Quote
  #4  
Old 02-22-2007, 06:56 AM
Default

EDIT2:

Sorry, it works correctly now, I have no idea why it works now and didn't work before. Probably some caching issues...




With the latest rev I got this problem in IE6:




I have to admit I don't know since which rev I have this problem, I develop in firefox and from time to time check in ie..

EDIT:

I have this doctype:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Without the doctype the paging buttons display correct (but my own layout is messed up).
Reply With Quote
  #5  
Old 02-22-2007, 07:28 AM
Default

Quote:
Originally Posted by jacksloc
This is fixed in the latest Rev. It still isn't perfect for all buttons, and I will continue to try to find a more reliable workaround.

IE7 in strict mode is full of bugs that are difficult to work around. I hope the IE team addresses some of them soon.
Thanks Jack! - I think I can workaround the doctype issue with the following css:

.x-btn-text { padding-left: 8px; }

This allows me to continue using the strict doctype for the moment without the button text being truncated.
Reply With Quote
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值