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

"offsetY" setting doesn't work after "removeSubtree" call #191

Open
shkleinik opened this issue Mar 27, 2015 · 0 comments
Open

"offsetY" setting doesn't work after "removeSubtree" call #191

shkleinik opened this issue Mar 27, 2015 · 0 comments

Comments

@shkleinik
Copy link

Hi, I'm trying to implement editable chart with "top" orientation. I want my chart be centred horizontally and stick to top vertically:

    var spaceTree = new $jit.ST({
                                  injectInto: container.id,
                                  orientation: "top",
                                  offsetY: 300
                               });

After I remove some subtree, entire tree is moved from the canvas to the center:

    spaceTree.removeSubtree(nodeId, true, "animate", {
                    hideLabels: false,
                    onComplete: function () {
                        console.log("subtree removed");
                    }
                }

Maybe somebody can suggest some workaround (set start point not on the canvas center but at the x/2, 0 + myOffset)?

P.S. By the way with 'replot' option NO reposition to center happens.

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

1 participant