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

display problem with huge tree #85

Closed
manuel-84 opened this issue Sep 28, 2016 · 4 comments
Closed

display problem with huge tree #85

manuel-84 opened this issue Sep 28, 2016 · 4 comments

Comments

@manuel-84
Copy link

manuel-84 commented Sep 28, 2016

When I have a huge tree displayed with full opened depth, if I hide all the children of one of the topmost parents then the chart disappear from screen because it does not update its position to center screen

To avoid this problem I created a button that resets the positioning if it's needed

$('.orgchart').css('transform','');

@dabeng
Copy link
Owner

dabeng commented Oct 12, 2016

Hi @manuel-84 , you are right and your solution is really nice, I'll encapsulate the above code into a new tip -- Why is the root node gone.

@dabeng dabeng closed this as completed Oct 12, 2016
@manuel-84
Copy link
Author

manuel-84 commented Nov 5, 2016

Actually I'm using a bit more complex code to adapt recentering for huge and little charts

  $('.btnRecenter').click(function() {
    var chart = $('.yourOrgChart');
    var posX = chart.width() > chart.parent('div').width() ? -(chart.width() / 2) : '0';
    chart.css('transform', 'matrix(1, 0, 0, 1, ' + posX + ', 0)');
  });
@josecarvalhoSigned
Copy link

Suppose you want to do the same thing you do when you open from the bottom up and center the relative in the initial position as you want to call him and if from a descending any close relatives he all centers that same child. Now what I wanted to know was how to always center the relative when opening the children and so successively by the chart below

@Zeqiatian
Copy link

How can this plugin implement the family tree, I had seen that one node just could belong to just one parent one, but it could not belong multiple parent node?

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