Resizing Modals

Anyone know if it’s possible/how to resize a card modal programmatically while it’s active?

What is the use case, perhaps just add content and have it set to resize?

The case is creating a modal with dynamic content, a large part of the schema can be changed by filemaker

I have now figured out a way of doing it, but it involves
formGen.$parent.$parent.modal.width == NEW_WIDTH
ie using formGen.$parent.$parent with a modal open to access the vue instance of the modal.