Is it possible to center the Chart around the expanded node

by nyordanov » Tue Jan 27, 2015 12:48 pm

Hello,

Is it possible to center the chart around the last expanded node?

I have tried to use $plumsail.layoutController().getScrollContainer().scrollLeft property but it has some weird number like 48000+ by default. And I do not know how to get the coordinates of the last clicked "+" box.


Thanks.
User avatar
nyordanov
 
Posts: 8
Joined: Mon Nov 24, 2014 7:08 am

by Anton Khritonenkov » Tue Jan 27, 2015 12:51 pm

Hi,

Thank you for your question.

Try

Code: Select all
$.layoutController().adjustCenterScroll()
User avatar
Anton Khritonenkov
 
Posts: 216
Joined: Wed Nov 12, 2014 1:33 pm

by nyordanov » Tue Jan 27, 2015 1:27 pm

The code you have mentioned just centers the chart. I want to center around the "+" sign which is just clicked.
User avatar
nyordanov
 
Posts: 8
Joined: Mon Nov 24, 2014 7:08 am

by Anton Khritonenkov » Wed Feb 11, 2015 12:00 pm

Hello,

Looks like I misunderstood your initial questions. Unfortunately there is no API for this. You can contact support@plumsail.com to request this functionality. We don't have such requests from our customer yet, but you can order Pro Support to add such functionality.
User avatar
Anton Khritonenkov
 
Posts: 216
Joined: Wed Nov 12, 2014 1:33 pm


Return to Org Chart for SharePoint 2013