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

Blurry text in Safari #7

Open
maxkfranz opened this issue Apr 3, 2018 · 6 comments
Open

Blurry text in Safari #7

maxkfranz opened this issue Apr 3, 2018 · 6 comments
Labels

Comments

@maxkfranz
Copy link

Safari Version 11.0.3 (12604.5.6.1.1)
Mac Version 10.12.6 (16G1212)

It also affects the iPhone with Safari: iOS 11.2.5 (15D60)

When zoomed in, the text can become blurry in Safari. See this example:

screen shot 2018-04-03 at 12 28 19 pm

@surfjedi
Copy link

+1 yup seeing this after I made some really cool html labels with dropdowns an every thing.. @maxkfranz any ideas what this could be?

in screen shot red is cytoscape node in red (which is crisp) yet the custom html is all blurry...

image

@surfjedi
Copy link

@kaluginserg Any ideas what this issue is? I love your plugin and may be able to help just don't know where to start?

@thearod5
Copy link

Similarly love this plugin and would love to help in any way I can!

@leecalcote
Copy link

Ditto. Will you accept a PR on this, @kaluginserg?

@leecalcote
Copy link

Has anyone found a solution to this issue, yet?

@anthologen
Copy link

I did some investigation and the issue appears to be related to the way Safari (mis)handles z-index. Once you remove the z-index style attribute, Safari stops blurring the labels.

For a reproducible example:

  1. Open the repo's public demo in Safari (or the index.html in the project root)
  2. In the DOM inspector, find the parent div of all labels divs (with class “cy-title”)
  3. From that div, delete the z-index style attribute
  4. Observe that the labels are no longer blurred

Unfortunately, removing z-index puts all labels beneath the other elements in the cytoscape container which is undesirable. That problem becomes very visible when drawing a graph with thick edges or when trying to overlay labels on top of nodes.

My experiments to work-around it using translate3d haven’t been working. I might return to this, but I’m hoping someone else finds these notes useful.

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

6 participants