Control Modal form size


#1

I need to keep the modal form within the main screen area. I have to scroll down to see the whole modal form.

http://mydubaidream.com/dubai4/ ( 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.

formPopAnim.onshow=function(){
    alert('show');
}

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

Cheers

Steve Warby


#2

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.

Cheers

Steve Warby