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

Vis configuration scrolls to top in Chrome when editing an input element #208

Closed
felixhayashi opened this issue Jan 15, 2016 · 1 comment
Labels
bug Something that should work is not working

Comments

@felixhayashi
Copy link
Owner

In TiddlyMap, this happens in every dialog where visjs is configured.

  • Configure TiddlyMap
  • Configure View
  • Style Edge type
  • Style Node type
  • Edit local/global node style

Caused by dom tree recreation of the configurator. See also almende/vis#1568 (comment).

@felixhayashi felixhayashi added bug Something that should work is not working resolved in next release Will be resolved once a new release is published labels Jan 15, 2016
@felixhayashi
Copy link
Owner Author

Solution is to save the height of the container div ("vis-network") before recreating the domnode

var height = container.getBoundingClientRect().height;
container.style["height"] = height + "px";

@felixhayashi felixhayashi removed the resolved in next release Will be resolved once a new release is published label Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that should work is not working
Projects
None yet
Development

No branches or pull requests

1 participant