Skip to content

Something is up with relayout while adding/removing layout images #670

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

Closed
etpinard opened this issue Jun 20, 2016 · 2 comments · Fixed by #672
Closed

Something is up with relayout while adding/removing layout images #670

etpinard opened this issue Jun 20, 2016 · 2 comments · Fixed by #672
Assignees
Labels
bug something broken

Comments

@etpinard
Copy link
Contributor

See http://codepen.io/etpinard/pen/qNagLZ

Compare to the behavior for shapes: http://codepen.io/etpinard/pen/xVPoYG

@etpinard etpinard added the bug something broken label Jun 20, 2016
@etpinard etpinard self-assigned this Jun 20, 2016
@EvertS3
Copy link

EvertS3 commented Jul 11, 2016

@etpinard Multiple images can now be added but it seems there might still be a bug here, when trying to remove the images, only the latest one gets removed. The rest stay on the plot? See your code example: http://codepen.io/etpinard/pen/qNagLZ

Console output example:

0 [Object]
1 [Object, Object]
2 [Object, Object, Object]
3 [Object, Object, Object, Object]
4 [Object, Object, Object, Object, Object]
5 [Object, Object, Object, Object, Object, Object]
6 [Object, Object, Object, Object, Object, Object, Object]
7 [Object, Object, Object, Object, Object, Object, Object, Object]
8 [Object, Object, Object, Object, Object, Object, Object, Object, Object]
9 [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]0: Object1: Object2: Object3: Object4: Object5: Object6: Object7: Object8: Objectsizex: 0.2sizey: 0.2source: "https://images.plot.ly/language-icons/api-home/python-logo.png"x: 0.28823285453328107xanchor: "right"xref: "paper"y: 0.4274294387284563yanchor: "bottom"yref: "paper"__proto__: Object9: Objectlength: 10__proto__: Array[0]
9 [Object, Object, Object, Object, Object, Object, Object, Object, Object, "remove"]
9 [Object, Object, Object, Object, Object, Object, Object, Object, Object, "remove"]
9 [Object, Object, Object, Object, Object, Object, Object, Object, Object, "remove"]
9 [Object, Object, Object, Object, Object, Object, Object, Object, Object, "remove"]
9 [Object, Object, Object, Object, Object, Object, Object, Object, Object, "remove"]

@etpinard
Copy link
Contributor Author

@EvertS3 here's a working version: http://codepen.io/etpinard/pen/qNagLZ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants