NPellet / visualizer

Other
42 stars 24 forks source link

Layer: cannot move module in new layer #1009

Closed stropitek closed 7 years ago

stropitek commented 7 years ago

To reproduce:

You'll not be able to move it with the error: Uncaught TypeError: Cannot read property 'top' of undefined

https://www.lactame.com/visualizer/v2.74.1/?viewURL=https%3A%2F%2Fmydb.cheminfo.org%2Fdb%2Fvisualizer%2Fentry%2F9ad330691a8214bc023cb4542722ac84%2Fview.json

lpatiny commented 7 years ago

I still have some problems in my layer SVG where I have modules that can not be moved : https://my.cheminfo.org/?viewURL=https%3A%2F%2Fmydb.cheminfo.org%2Fdb%2Fvisualizer%2Fentry%2F8fcf268d9a86be15206e3bc1fa1dca49%2Fview.json

stropitek commented 7 years ago

The bug is only fixed if the layer was created with a version of the visualizer that already has the fix (for now it's only HEAD)

lpatiny commented 7 years ago

You know how I can fix my view ?

lpatiny commented 7 years ago

OK I succeded by adding position when there where not