<div dir="ltr"><div dir="ltr"><div>Hi all</div><div>Iam trying to get the size of a QgsLayoutItemLegend item using legend.sizeWithUnits(). However, I always get the following answer:</div><div><QgsLayoutSize: 0 x 0 mm > <QgsLayoutPoint: 0, 0 mm ></div><div>but when I run it separately, then I get the correct answer.</div><div>Any ideas how this comes and how to tackle this problem?</div><div><br></div><div>Thanks</div><div>Asim</div></div></div>