I'm using Angular2-modal
to create a modal with some content which some dynamic contents inside. This content is basically an image, but the dimensions are not always the same, but I know the dimensions when I create the modal, so how can I specify the dimensions of the modal?
this.modal.open(SnapshotCanvasModalComponent, overlayConfigFactory(context, BSModalContext));
being context
a simple object with the image inside (base64
).
I read that I can use modal-lg or modal-sm to set a class and then redefine those classes, but the dimensions in this case can´t be set by css but dynamically, as I don´t really know the dimensions of the image in advance.
Any ideas? Thanks