I’m using Eric Martin’s sweet ‘simplemodal’ jQuery plugin. It works wonderfully and would recommend it to anyone looking for a lightweight jQuery-based modal dialogue solution.
That said, I have some particularly long content that “needs” to be displayed as a modal. By default, the container element uses ‘overflow:auto’ to handle content that is too long to fit within the browser window. This works well in most cases, but in this case I would like the dialogue to remain full height and scroll with the rest of the page (positioned ‘absolute’ vs. ‘fixed’). I can get this working fairly easily by modifying any position: ‘fixed’ references in the source to position: ‘absolute’ but this sucks as it means ALL my modals will display this way…
Anyone have any thoughts on how to make this work gracefully?
It sounds like youre not adverse to adapting the source to you specific needs… therefore i would recommend reworking it so that you can supply the positioning and overflow properties via an options object.