cytoscape.js elements disappear when using Firefox to zoom in or out

瘦欲@ 提交于 2019-12-11 10:56:19

问题


Using Firefox 24.0 on Ubuntu 12.04, I can reproduce this by:

  1. Going to http://cytoscape.github.io/cytoscape.js/ with Firefox
  2. Use Ctrl + + or Ctrl + - to zoom in or out
  3. Move the mouse over the graph in the corner and watch it disappear.

Seems to work fine in Chrome. Any ideas on how to fix this?


回答1:


The same version of Firefox on Mac does not have this issue, leading me to believe this is a Firefox problem or an Ubuntu problem. If I were you, I would file a bug report with Mozilla: https://bugzilla.mozilla.org

They can investigate whether this is an issue on their end or whether this is an issue on the Ubuntu end. -M




回答2:


I think I have a solution. In Firefox if you press ctrl-0, it will reset your zoom level to default. This appears to solve the bug in Firefox 24 and 25. If you then press Ctrl and + or - to zoom in or out, the disappearing behavior will return. You can resolve again by resetting to default zoom level.

Not ideal behavior, but this is probably either a Firefox bug or a cytoscape.js bug.



来源:https://stackoverflow.com/questions/18992398/cytoscape-js-elements-disappear-when-using-firefox-to-zoom-in-or-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!