ui: Also elide name of active node if it has more than 100 characters (issue #652)

This commit is contained in:
Eberhard Graether
2019-01-08 14:25:28 +01:00
parent d6a07e9477
commit 54f989f6f5
2 changed files with 2 additions and 6 deletions
@@ -1891,11 +1891,7 @@ void GraphController::layoutNestingRecursive(DummyNode* node) const
if (node->isGraphNode())
{
if (!node->active)
{
node->name = utility::elide(node->name, utility::ELIDE_RIGHT, 50);
}
node->name = utility::elide(node->name, utility::ELIDE_RIGHT, node->active ? 100 : 50);
width = margins.charWidth * node->name.size();
if (node->data->getType().isCollapsible() && node->data->getChildCount() > 0)