mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix icon positioning
This commit is contained in:
parent
365518ca2d
commit
2eeeeb4498
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user