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

refactor portal #1040

Merged
merged 22 commits into from
Apr 4, 2019
Merged

refactor portal #1040

merged 22 commits into from
Apr 4, 2019

Conversation

intellild
Copy link
Contributor

@intellild intellild commented Mar 26, 2019

refactor portal
add paddingRight with width of browser's scrollbar width (thanks bootstrap)
fix dialog, popover, loading due to the refactor
fix dialog's tests

@intellild intellild changed the title refactor portal [WIP] refactor portal Mar 26, 2019
@coveralls
Copy link

coveralls commented Mar 26, 2019

Coverage Status

Coverage decreased (-0.07%) to 96.36% when pulling b055672 on refactor/portal into b8f6d0a on master.

@intellild intellild changed the title [WIP] refactor portal refactor portal Mar 26, 2019
@@ -0,0 +1,17 @@
function getScrollbarWidth() {
const scrollDiv = document.createElement('div');
Copy link
Contributor

Choose a reason for hiding this comment

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

SSR 给个默认值吧

interface IRelatedStyle {
overflowY: string | null;
paddingRight: string | null;
}

export interface ILayeredPortalProps extends IPurePortalProps {
visible?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

? 去了

@cpylua cpylua merged commit 2a29ea7 into master Apr 4, 2019
@cpylua cpylua deleted the refactor/portal branch April 4, 2019 02:13
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.

3 participants