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

sourceNode在X轴或者Y轴均无法完全显示,如果允许调整位置({adjustX: true, adjustY: true}),但单个方向能够调整,domAlign返回值有误 #80

Open
MrErHu opened this issue Jan 9, 2024 · 0 comments

Comments

@MrErHu
Copy link

MrErHu commented Jan 9, 2024

代码:https://github.com/MrErHu/dom-align-bugfix-demo(url: http://localhost:3000/bugfix)
原始状态如下:
image

source node:

  • width: 100
  • height: 40:
  • marginTop: 30

taget node:

  • width: 100
  • height: 40
  • left: 0
  • right: 0

当配置:

{
    points: ['bc', 'tc'],
    offset: [0, -10],
    targetOffset: [0, 0],
    overflow: {
        adjustX: true,
        adjustY: true,
    }
}

理论上Y轴无法显示,source node的points应该改变为 ['tc', 'bc']`,对应的offset: [0, 10]。
但是实际情况是:
image

MrErHu pushed a commit to MrErHu/dom-align-bugfix-demo that referenced this issue Jan 9, 2024
@MrErHu MrErHu mentioned this issue Jan 9, 2024
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

No branches or pull requests

1 participant