How can I avoid the Org Chart to expand beyond the page widt

by Ona. » Wed Nov 12, 2014 3:24 pm

I have a Start View with 2 levels, one box at the top and the next level contains 9 boxes. All the boxes at level 2 is lined horizontal, and I only see some of the boxes. I have to scroll horizontal to see all the boxes. I want to display all the boxes within the page width and only use vertical scroll.
How can I do this?
Ona.
 

by Anton Khritonenkov » Wed Nov 12, 2014 3:25 pm

Hi Ona,

You can write custom JavaScript to set initial zoom. Thus, your org chart will be smaller and fit your page. Just open the configuration wizard and put following code in the JavaScript editor:

Code: Select all
zoom(0.5)


Where 0.5 is a scale for zoom (50%).

You also can [url]=http://plumsail.com/sharepoint-orgchart/docs/advanced-web-part-configuration/#visual-settingscustomize CSS styles[/url] for boxes to change their size.

Please, let me know if this solution doesn’t satisfy your requirements.
User avatar
Anton Khritonenkov
 
Posts: 215
Joined: Wed Nov 12, 2014 1:33 pm

by Ona. » Wed Nov 12, 2014 3:26 pm

Yes, I can handle it this way. Though it is not a good solution. I wish you will make a version with Responsive Design.
Ona.
 

by Anton Khritonenkov » Wed Nov 12, 2014 3:27 pm

Ona. wrote:Yes, I can handle it this way. Though it is not a good solution. I wish you will make a version with Responsive Design.


Hi Ona, possibly in future releases. You can request this functionality from our Pro Support Team. Please, write your request to support@plumsail.com if you are interested.
User avatar
Anton Khritonenkov
 
Posts: 215
Joined: Wed Nov 12, 2014 1:33 pm

by SamDaniel » Sun Aug 21, 2016 12:19 pm

To achieve, where to add "zoom(0.5)"
User avatar
SamDaniel
 
Posts: 16
Joined: Wed May 13, 2015 1:58 pm

by Anton Khritonenkov » Wed Sep 14, 2016 11:07 am

Open the configuration wizard of the web part and switch to "Custom JavaScript" step. Paste renderer.zoom(0.5) into the code editor outside of any other code. For example, at the top.
User avatar
Anton Khritonenkov
 
Posts: 215
Joined: Wed Nov 12, 2014 1:33 pm


Return to Org Chart for SharePoint 2013

cron