Skip to content

ie9下如果项目过多时滚动条定位偏移问题 #35

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions assets/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
animation-play-state: running;
}
}
&-menu-wrapper {
display: inline-block;
}
&-menu {
display: inline-block;
width: 100px;
Expand Down
8 changes: 5 additions & 3 deletions src/Menus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ class Menus extends React.Component {
return (
<div>
{this.getShowOptions().map((options, menuIndex) =>
<ul className={`${prefixCls}-menu`} key={menuIndex} style={dropdownMenuColumnStyle}>
{options.map(option => this.getOption(option, menuIndex))}
</ul>
<div key={menuIndex} className={`${prefixCls}-menu-wrapper`}>
<ul className={`${prefixCls}-menu`} key={menuIndex} style={dropdownMenuColumnStyle}>
{options.map(option => this.getOption(option, menuIndex))}
</ul>
</div>
Copy link
Member

@afc163 afc163 Dec 23, 2018

Choose a reason for hiding this comment

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

这样的嵌套结构看起来很啰嗦。

Copy link
Author

Choose a reason for hiding this comment

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

但是ant里面用的-ms的属性解决方案不能解决ie9下的问题

)}
</div>
);
Expand Down