Modal form auto-resize

Hi there
Is there any way to auto-resize a modal form when it’s pop-up for instance from a grid’s link?
It’s really cumbersome to carry out a lot of tests trying to figure out the best size taking into account we have already configured previously when creating the Form application

Thanks a lot

Cheers

Re: Modal form auto-resize

You can edit the size only in Scriptcase, once the app is generate, you cant edit the size of the modal window.

Re: Modal form auto-resize

Thanks Max for your reply.
What I’m trying to find out is how the modal window can be automatically resized when it’s called through a link field.
If the modal window is simply opening an already created form that has already established its height and width why we should provide again a new width and height for the modal window? why the modal window is not simply getting the size of the form and set it as default height and width?

Thanks

Re: Modal form auto-resize

You will have to do this yourself. You can perhaps setup some javascript code and using window.width,window.height to calc your size and issue new settings.
I have not tried this in SC, so you will have to venture out.

Regards,
Scott.

Re: Modal form auto-resize

Thanks Scott for your reply
I will then add it to the section “suggestions/improvements” for next Scriptcase’s releases :slight_smile: