diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-01-17 11:22:28 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-01-17 12:47:30 +0100 |
commit | 3a655975e5ea43417885513d0752da3627dd25ed (patch) | |
tree | 4ec8633ed4ae012993942288a3125d80c0aa1680 /io | |
parent | d8886a051abcb5abf52038bf3e5bced9f10f28af (diff) |
oox smartart, org chart: improve width of non-manager nodes
The default case is that all managers have assistants/employees, so
nodes under a manager can only use the horizontal space under the
manager to avoid overlapping.
But in case the previous / next sibling of the manager have no child
nodes (assistant/employee) then we can use that space to make the child
nodes larger. This improves readability of the chart's text a lot and
brings the layout closer to what PowerPoint does for the same input.
Handle all this in the hierChild algorithm, i.e. the container for a
list of assistants or a list of employees, which means "parent" in this
context always refers to a manager node.
Change-Id: Ib4125ea2a113339ab7bbcd78e43c5d204f442996
Reviewed-on: https://gerrit.libreoffice.org/66504
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'io')
0 files changed, 0 insertions, 0 deletions