Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复IE6下日期控件遮不住下面select元素的bug #61

Merged
merged 2 commits into from
Oct 13, 2014
Merged

修复IE6下日期控件遮不住下面select元素的bug #61

merged 2 commits into from
Oct 13, 2014

Conversation

shiran565
Copy link

问题描述:base-calendar.js:110,实例化Shim对象时日期控件弹出层还没有生成,因此iframe-shim获取不到弹出层的宽度,导致Shim控件失效,日期控件弹出层遮挡不住其下面的select元素。

修复方法:实例化Shim对象时不立即调用sync方法,在日期控件显示时调用即可

@@ -107,7 +107,7 @@ var BaseCalendar = Widget.extend({
this.set('lang', langs[this.get('lang')]);
}

this._shim = new Shim(this.element).sync();
this._shim = new Shim(this.element);//.sync();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以直接删掉,不要留旧代码的注释。

@shiran565
Copy link
Author

注释代码已删除,缩进格式已修改

@afc163
Copy link
Member

afc163 commented Oct 13, 2014

非常感谢 PR ~

afc163 added a commit that referenced this pull request Oct 13, 2014
修复IE6下日期控件遮不住下面select元素的bug
@afc163 afc163 merged commit 18289fb into aralejs:master Oct 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants