| Issue 294: | nyromodal does not resize when content changes | |
| 3 people starred this issue and may be notified of changes. | Back to list |
|
What steps will reproduce the problem? 1. open a nyromodal 2. unhide a div that was hidden in the content 3. the modal now has scrollbars even though it could fit in the viewport What is the expected output? What do you see instead? the modal should become bigger to accommodate the new size of the content. What version of the product are you using? On what operating system? Please provide any additional information below.
Mar 10, 2010
I have the same problem. A modal with a hidden div. When a checkbox is clicked inside the modal I want to show the div, and have the modal grow in height to accommodate. I tried the height:null trick you mention, and the modal did grow in height; however, the modal also grew in width and moved to the left a little. Each time i show/hide the div the modal grows in width (about 20px) and moves father to the left (about 8px), eventually it's off the screen on the left. |
||||||||
I don't want to add some tricky feature like that in nyroModal as it will grow up the size for a very few usages and add bugs somewhere. Instead, you could do it by yourself by calling the nyroModalSettings function once you added an element in the modal as follow: $.nyroModalSettings({height: null});