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

change in cy-panzoom location #10

Closed
metincansiper opened this issue Jan 20, 2016 · 4 comments
Closed

change in cy-panzoom location #10

metincansiper opened this issue Jan 20, 2016 · 4 comments
Assignees

Comments

@metincansiper
Copy link
Contributor

Hi,
I was using this extension with cytoscape.js 2.5.0 and some older versions. For this versions cy-panzoom was located on the top-left and inside of div containing the cy-network.

panzoom_old

Now, I am using cytoscape.js 2.5.4 and the cy-panzoom is located under the cy-network div as following,

panzoom

I think that with the latest version of cytoscape.js the location of cy-panzoom of this extension would be changed unintentionally.

And also I was wondering is there any option enabling us to set the position of the cy-panzoom?

@maxkfranz maxkfranz self-assigned this Jan 22, 2016
maxkfranz added a commit that referenced this issue Jan 22, 2016
@maxkfranz
Copy link
Member

Thanks for letting me know; fixed in 2.1.4

@metincansiper
Copy link
Contributor Author

@maxkfranz
Thanks, I think that you prepended the panzoom instead of appending it and made the position of container absolute. Making the position absolute was problematic for me, but when I remove the following line "$container.css('position', 'absolute');" it worked fine.

@maxkfranz
Copy link
Member

You're right. It should be on the panzoom container, not the cy container. Let me know if it works for you. Thanks

@metincansiper
Copy link
Contributor Author

Thanks, it seems to be working for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants