My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  Fixed
Owner:  ----
Closed:  Aug 2009


 
Reported by calph...@gmail.com, Jul 30, 2009
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.



whitespace.gif
31.5 KB   View   Download
Aug 11, 2009
Project Member #1 nyro...@gmail.com
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.
Status: Fixed

Powered by Google Project Hosting