| Issue 297: | Auto Height is incorrect when loading a content with jQuery tabs. | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
What steps will reproduce the problem? 1. Create an ajax request to a page using jquery tabs. 2. Couldn't calculate height automatically. What is the expected output? What do you see instead? There's always a huge white space below the content. What version of the product are you using? On what operating system? Windows XP Pro, Firefox, nyroModal 1.5.1, jQuery 1.3.2 Please provide any additional information below. |
||||||||
This problem occur because the calculation of the size is done before the tabs are created. A solution might be to resize the modal window once the tab are loaded by calling: $.nyroModalSettings({height: null}); With that, the modal will resize to fit the real content. During my test, I also try to make the modal resized every time a different tab is shown. To do so, you could do: $("#tabs").tabs({ show: function(event, ui) { $.nyroModalSettings({height: null}); } }); Hope it helped you.