Closed cretace closed 8 years ago
Hi cretace, thank you for your post.
So, I have questions:
No of course it doesn't appear on your own page! It's the same in FF and Chrome for me But really I just wondered if you had any idea what might cause it.
Thanks for info. So, could you show me your code? If you can't, you can use such as http://jsfiddle.net/ to show sample code.
Ok It seems to have settled down now I was loading text via an ajax call after opening the modal box - I've now moved the open modal to end of the ajax (doh!) Thanks
Ok, I see. :smile:
Now, I understand your case.
I think that your code changed the size of modal window by adding contents.
The information about offset
option below will help you.
http://anseki.github.io/jquery-plainmodal/#offset
The modal window is positioned considering that size at a necessary timing. Therefore if you changed that size after that was positioned, you must fix the position. plainModal provides the way to do that via offset
option.
Anyway, this issue was solved? and it's closed?
This might be a mistake in my css or html. When I first open the modal window it is not centered vertically - if I resize the window it then centres correctly. I am not adding anything to the init - just $('#mydiv').plainModal('open') Any ideas?
Thanks for nice simple plug in!