当使用Firefox放大或缩小时,cytoscape.js元素会消失 [英] cytoscape.js elements disappear when using Firefox to zoom in or out
问题描述
在Ubuntu 12.04上使用Firefox 24.0,我可以通过以下方式重现:
Using Firefox 24.0 on Ubuntu 12.04, I can reproduce this by:
- 转到 http://cytoscape.github.io/cytoscape.js/ 使用Firefox
- 使用Ctrl + +或Ctrl + - 放大或缩小
- 将鼠标移到拐角处的图表上并观察它消失。
- Going to http://cytoscape.github.io/cytoscape.js/ with Firefox
- Use Ctrl + + or Ctrl + - to zoom in or out
- Move the mouse over the graph in the corner and watch it disappear.
似乎在Chrome中正常工作。关于如何解决这个问题的任何想法?
Seems to work fine in Chrome. Any ideas on how to fix this?
推荐答案
我想我有一个解决方案。在Firefox中,如果按 ctrl-0 ,它会将缩放级别重置为默认值。这似乎解决了Firefox 24和25中的错误。如果然后按 Ctrl 和 + 或 - 放大或缩小,行为会返回。
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.
不是理想的行为,但这可能是Firefox错误或 cytoscape.js
错误。
Not ideal behavior, but this is probably either a Firefox bug or a cytoscape.js
bug.
这篇关于当使用Firefox放大或缩小时,cytoscape.js元素会消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!