When using the http://drupal.org/project/tabs module, the tabs do not load up correctly.

Because the iframe is still hidden when the tabs behavior is run, the tabs get initialized incorrectly. I'm not sure if this is a bug in tabs, but I was able to correct it by removing the fade in effects on the modal dialog, and simply setting it to show straight away.

I'm not suggesting this as a fix, but it does solve my problem for now.

Can you think of a better way to handle this? I've seen similar issues in regards to fieldsets and table drag weights not working correctly when the containing element is also hidden initially.

Is there a way to delay the running of the behaviors until the iframe is fully visible?

Comments

markus_petrux’s picture

hmm... I see. Probably, we need to ensure the Drupal behavior defined in modal frame's child.js script needs to be executed first than everything else. That way we would be able to bind the child window to the parent, and the fadeIn() animation would trigger before anything else.

In other words, we need to inject our child behavior on top of Drupal.behaviors, but only the part of this behavior that interacts with the parent window.

markus_petrux’s picture

Title: Tabs in modal do not work. » jQuery Tabs in Modal Frame do not work because the child document is not visible until the child Drupal behavior is executed
Status: Active » Fixed

Ok, it's been fixed in CVS.

http://drupal.org/cvs?commit=282504

Now, we execute before everything else, so when another behavior runs, we have already bring the document to light.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.