Control Modal form size


I need to keep the modal form within the main screen area. I have to scroll down to see the whole modal form. ( click on an image )
I was attempting to get the main form height and use this to make the modal screen height smaller.

The onShow event does not trigger.


Why is the standard modal forcing the scroll down and how can I adapt it please.


Steve Warby


I can change the settings to what I needed in the inspector.

So I added this to the forms style

max-width: 100% !important;
height : 90vh !important;

but it is ignored.


Steve Warby