Fix icon positioning

This commit is contained in:
Paulo Gustavo Veiga 2022-02-22 20:05:58 -08:00
parent 365518ca2d
commit 2eeeeb4498

View File

@ -1292,7 +1292,7 @@ abstract class Topic extends NodeGraph {
const topicHeight = Math.max(iconHeight, textHeight) + padding * 2; const topicHeight = Math.max(iconHeight, textHeight) + padding * 2;
const textIconSpacing = Math.round(fontHeight / 4); const textIconSpacing = Math.round(fontHeight / 4);
const iconGroupWith = iconGroup.getSize().width; const iconGroupWith = iconGroup.getSize().width;
const topicWith = iconGroupWith + textIconSpacing + textWidth + padding * 2; const topicWith = iconGroupWith + 2 * textIconSpacing + textWidth + padding * 2;
this.setSize({ this.setSize({
width: topicWith, width: topicWith,