Magento calendar IE8 js位置控制问题

作者:Jeen 发布于:2013-4-21 20:02 Sunday 分类:工作笔记

环境:magento 1.5.1

IE8下 magento的日期表格的位置 js计算错误,导致样式异常

解决记录,修改 /js/calendar/calendar.js   1459行左右


br.y += document.body.scrollTop;
br.x += document.body.scrollLeft;

修改为
br.y += document.body.document.documentElement.scrollTop;
br.x += document.body.document.documentElement.scrollLeft;

即:

if (Calendar.is_ie) {
/* old non working
br.y += document.body.scrollTop;
br.x += document.body.scrollLeft; */
br.y += document.body.document.documentElement.scrollTop;
br.x += document.body.document.documentElement.scrollLeft;

 

刷新即可,记此备忘

参考链接:magentocommerce.com/boards/viewthread/50895/

标签: magento

发表评论:

©2010-2024 Jeen All Rights Reserved.Powered by emlog 京ICP备15058100号-1