ui: Fixed different font faces cause graph nodes to expand to more grid cells
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user