html - jQuery modal window scroll bar -


sorry if think didn't show code because haven't implement yet.

i trying built jquery photo view plugin, when find examples on line, height of modal window either window height height of computer screen of document height height of html body.

when saw facebook photo view plugin, height of modal window can extended according content height, tell me how that, if show me bit of coding related or examples great, thank great help.

facebook interesting modals. have page wrapped in container, , modal added dom sibling, rather child of container. so, set container position:fixed instead of modal. allows user scroll if modal grows past constraints of window size.

if intend follow same strategy, modal naturally grow content does, since modal doesn't have postion:absolute.

otherwise, can of course done traditional approach of making modal position:absolute or position:fixed, little trickier.

if have control on code changing content in modal, evaluate size of content , resize/reposition modal compensate.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -