Skip to content

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

@MrErHu

Description

@MrErHu

代码: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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions