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

Canvas.scrollToElement does not accept IDs #589

Closed
marstamm opened this issue Nov 12, 2021 · 0 comments
Closed

Canvas.scrollToElement does not accept IDs #589

marstamm opened this issue Nov 12, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@marstamm
Copy link
Contributor

Describe the Bug

I can only use the Elements when for the canvas.scrollToElement API.
When I call canvas.scrollToElement('someID'), an error occurs:

Error: <g> attribute transform: Expected number, "matrix(1,0,0,1,NaN,NaN)".

Steps to Reproduce

  1. Create a diagram
  2. Call canvas.scrollToElement('someID')
  3. it scrolls to (0,0) and zoom 1
  4. Console shows Error: <g> attribute transform: Expected number, "matrix(1,0,0,1,NaN,NaN)".

Expected Behavior

  • I can use IDs of Elements I want to scroll to
    OR
  • A clear error message is shown

Environment

Please complete the following information:

  • Browser: Chrome 90
  • OS: Ubuntu
  • Library version: 7.6.2
@marstamm marstamm added bug Something isn't working ready Ready to be worked on labels Nov 12, 2021
@marstamm marstamm self-assigned this Nov 12, 2021
marstamm added a commit that referenced this issue Nov 15, 2021
@bpmn-io-tasks bpmn-io-tasks bot added in progress Currently worked on and removed ready Ready to be worked on labels Nov 15, 2021
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Nov 15, 2021
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant