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

[WIP] Fix pop node height 100% #44

Closed
wants to merge 1 commit into from
Closed

Conversation

afc163
Copy link
Member

@afc163 afc163 commented Feb 28, 2017

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 77.57% when pulling 705b53c on fix-height-100-percent into da5bbc2 on master.

@afc163 afc163 changed the title Fix pop node height 100% [WIP] Fix pop node height 100% Feb 28, 2017
@afc163
Copy link
Member Author

afc163 commented Feb 28, 2017

Not finished

div.style.margin = '0';
div.style.padding = '0';
});

Copy link
Member Author

@afc163 afc163 Feb 28, 2017

Choose a reason for hiding this comment

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

这个用例在 npm run chrome-test 下可以重现 #41 的问题。需要把 OSX 的滚动条调成『始终』。

npm test 里貌似不会出现滚动条。

@@ -76,6 +76,8 @@ const Popup = React.createClass({
this.currentAlignClassName = null;
}
const newStyle = {
top: 0,
left: 0,
Copy link
Member Author

Choose a reason for hiding this comment

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

默认给 popupDOMNode 加上 top 和 left,避免影响页面原有的布局。

popupContainer.style.position = 'absolute';
popupContainer.style.top = '0';
popupContainer.style.left = '0';
popupContainer.style.width = '100%';
Copy link
Member Author

Choose a reason for hiding this comment

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

会导致 ant-design/ant-design#5092 的问题。影响弹出节点的 height: 100%max-height: 100% 的样式高度。

@afc163 afc163 changed the title [WIP] Fix pop node height 100% Fix pop node height 100% Feb 28, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 77.215% when pulling a50ae98 on fix-height-100-percent into da5bbc2 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 77.215% when pulling 390bad2 on fix-height-100-percent into da5bbc2 on master.

@afc163 afc163 changed the title Fix pop node height 100% [WIP] Fix pop node height 100% Feb 28, 2017
@afc163 afc163 closed this Feb 28, 2017
@afc163
Copy link
Member Author

afc163 commented Feb 28, 2017

算了,会有更多问题,我在 antd 修复即可。

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.7.3] TreeSelect不出菜单选项了,紧急
3 participants