How to programmatically resize shape as per text?

@asthac,
The ticket ID DIAGRAMJAVA-50525 has been resolved. If there is no issue in the quality assurance phase, then this fix will be included in the next version 17.8 of Aspose.Diagram for Java API. We will notify you once the new version is published.

Best Regards,
Imran Rafique

@asthac,
The ticket ID DIAGRAMJAVA-50525 has been fixed. Please download and try the new version 17.8 of Aspose.Diagram for Java API.

Best Regards,
Imran Rafique

@imran.rafique

We have verified DIAGRAMJAVA-50525 on version 17.8.0. Thanks for fixing issue in case of many shapes.
But width formula is still not maintained in case of ‘Decision’ shape.

PFA test case
Decision Shape Formula.zip (151.7 KB)

Thanks,
Astha

@asthac,
We managed to replicate the said problem of the width formula in our environment. It has been logged under the ticket ID DIAGRAMJAVA-50544 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

Best Regards,
Imran Rafique

The issues you have found earlier (filed as DIAGRAMJAVA-50544) have been fixed in Aspose.Diagram for Java18.9.