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

fix: Multiple adjust should keep points #53

Merged
merged 3 commits into from
May 19, 2020
Merged

fix: Multiple adjust should keep points #53

merged 3 commits into from
May 19, 2020

Conversation

zombieJ
Copy link
Collaborator

@zombieJ zombieJ commented May 15, 2020

fix ant-design/ant-design#24172

水平、垂直有一个方向放不下重置对应方向的标记,目前这里是整个重置,导致一个方向是对的也被重置了。

cc @afc163

@zombieJ zombieJ requested a review from yiminghe May 15, 2020 15:24
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 68.357% when pulling bb2e16c on fix-adjust into fc1fc60 on master.

@yiminghe
Copy link
Owner

改变了默认行为。这个行为改变加选项控制吧

@zombieJ
Copy link
Collaborator Author

zombieJ commented May 18, 2020

改变了默认行为。这个行为改变加选项控制吧

没改变默认行为,只是个 bug fix:

if (isStillFailX || isStillFailY) {
      points = align.points;

如果单个 adjustX/adjustY 被触发,它会把另一个 Y/X 的 point 给重置掉。防止 breaking change 在 #52 里特地加了 points 相关的测试用例确保不会改变原本行为。并在此 PR 添加额外测试用例来测边界情况 https://github.com/yiminghe/dom-align/pull/53/files#diff-aeeb5355cc15e047bd7ffcbb498bf173R578

再看看哈~

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.

Popover and Popover arrow position, width and direction issues inside a table
3 participants