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

2.12.1升级到2.13.1后,image标签显示位置错误 #3867

Closed
Mafiti opened this issue Aug 23, 2023 · 1 comment · Fixed by #3878
Closed

2.12.1升级到2.13.1后,image标签显示位置错误 #3867

Mafiti opened this issue Aug 23, 2023 · 1 comment · Fixed by #3878

Comments

@Mafiti
Copy link

Mafiti commented Aug 23, 2023

Describe the bug

自定义svg节点,如果原节点中image配置xlinkHref为空,然后通过node.setAttrs设置xlinkHref,在2.13.1之前的版本是可以正确显示在配置的位置,但是升级到最新的2.13.1版本后,配置的位置不生效了,一直显示在左上角。

升级之前:
配置xlinkHref为空
image
node.setAttrs设置xlinkHref,image位置正确显示
image

升级之后:
相同的代码但是image显示的位置不正确了
image

codesandbox现在是最新的版本2.13.1,显示的位置是错误的,将版本降到2.x任意一个版本即可正确显示

Your Example Website or App

https://codesandbox.io/s/blissful-dewdney-t489wp

Steps to Reproduce the Bug or Issue

见描述

Expected behavior

期望能够正确显示配置的image位置

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 2.11.1]

Additional context

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 4, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Sep 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant