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

The layout silently fails to run in Firefox #51

Closed
tntmarket opened this issue Nov 20, 2020 · 2 comments
Closed

The layout silently fails to run in Firefox #51

tntmarket opened this issue Nov 20, 2020 · 2 comments
Labels

Comments

@tntmarket
Copy link

I have an application that works in Chrome, but when I run it in Firefox, layout.run() fails without any error message:

const layout = cy.layout({ name: 'cola' })
console.log('This line is hit')
layout.run()
console.log('But this line is not!')

cy.json() just before calling layout.run() looks like this:

{
  "elements": {
    "nodes": [
      {
        "data": {
          "id": "Foo"
        },
        "position": {
          "x": 0,
          "y": 0
        },
        "group": "nodes",
        "removed": false,
        "selected": true,
        "selectable": true,
        "locked": false,
        "grabbable": true,
        "pannable": false,
        "classes": ""
      }
    ]
  },
  "style": [
    {
      "selector": "node",
      "style": {
        "shape": "roundrectangle",
        "background-color": "rgb(153,153,153)"
      }
    },
    {
      "selector": "edge",
      "style": {
        "line-color": "rgb(153,153,153)",
        "target-arrow-color": "rgb(153,153,153)",
        "source-arrow-color": "rgb(153,153,153)",
        "curve-style": "bezier",
        "target-arrow-shape": "triangle"
      }
    },
    {
      "selector": ":selected",
      "style": {
        "background-color": "rgb(22,103,211)",
        "line-color": "rgb(22,103,211)",
        "target-arrow-color": "rgb(22,103,211)",
        "source-arrow-color": "rgb(22,103,211)"
      }
    }
  ],
  "data": {},
  "zoomingEnabled": true,
  "userZoomingEnabled": true,
  "zoom": 1,
  "minZoom": 0.2,
  "maxZoom": 1,
  "panningEnabled": true,
  "userPanningEnabled": true,
  "pan": {
    "x": 0,
    "y": 0
  },
  "boxSelectionEnabled": true,
  "renderer": {
    "name": "canvas"
  }
}

When I use the null or cose layouts, the layout does run.

I'm using cytoscape@3.16.1 and cytoscape-cola@2.4.0

@maxkfranz
Copy link
Member

Could you provide a reproducible demo (e.g. jsbin) to confirm that the issue is either within this extension or Cola itself, rather than your application?

@stale
Copy link

stale bot commented Dec 24, 2020

This issue has been automatically marked as stale, because it has not had activity within the past 30 days. It will be closed if no further activity occurs within the next 30 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.

@stale stale bot added the stale label Dec 24, 2020
@stale stale bot closed this as completed Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants