ui: Fixed different font faces cause graph nodes to expand to more grid cells

This commit is contained in:
Eberhard Graether
2017-02-09 15:26:14 +01:00
parent 06676eda66
commit e08f7ce2c0
3 changed files with 17 additions and 13 deletions
@@ -142,6 +142,9 @@ void GraphViewStyle::loadStyleSettings()
s_nodeColors.clear();
s_edgeColors.clear();
s_gridCellPadding = getImpl()->getCharHeightForNodeType(Node::NODE_TYPE) - 8;
s_gridCellSize = s_gridCellPadding / 2;
}
float GraphViewStyle::getCharWidthForNodeType(Node::NodeType type)