Showing posts with label pops. Show all posts
Showing posts with label pops. Show all posts

Saturday, March 24, 2012

Modal popup, calculated screen size and scrolling...

I have a modal popup that pops up over a web page that does not require scrolling to view the content. As soon as the modal popups up, scroll bars appear.

I looked at the source code for the modal, and it calculates the screen size to make the background fit correctly, but it some how figures in the size of the modal popup content into it's calculation. It then sets the background height and width according to that. The most annoying is if the modal is over 550px wide, it will put scroll bars on the bottom. If you scroll those, the page css doesn't cover the extra space and looks horrible.

I have played with the modal and parent containers' css for size and position, but I can't get rid of the scroll bars. I even set the body's overflow to hidden which really f's up the look.

What can I do for this?

I figured it out. Set the panel to absolute and set the top to 0px. Doesn't change the position actually, but tricks the calculation of the screen size.

Wednesday, March 21, 2012

ModalPopup + Flash + Firefox = problem?

Hey

I'm trying to include a flash object in my ModalPopup panel but when it the ModalPopup pops up, the flash object can't be accessed using FireFox (2.0.0.2).. Now.. to be clear, the flash object does show however I can't really click on the object... What's strange about this is that I can click on certain parts of the object but not others..

Originally I thought it was an issue relating to z-index so I set the <object> tag to have a z-index of 1000000 (you know.. some thing ridiculous), hoping that it would put the object to the top thus letting me click it.. Sad to say, no luck there.

I've tried this scenario on IE7 and it works perfectly..

Any ideas of fixes??

Thanks in advance!

Hey, I've just upgraded to the new release of the toolkit ie Version 1.0.10301.0 and I still am having the same problem..

Help? Anyone on the Ajax team maybe?