Follow up on #1064448: support gmap location cck vertical tabs - HACK to correctly render gmap location cck in vertical tab that looks at the issue displaying Google Maps in hidden containers.

Using the module Panel Tabs, you can bind various panel content into tabs, and no surprises, Google maps hits the exact same issue as the previous thread in that it doesn't render correctly when hidden.

After spending way too much time on this, I went for an overly generic approach that resizes on a hashchange event that is triggered as you change tabs. Works but is probably a bad way of doing this... maybe...

         jQuery(elem).parents('fieldset.collapsible').children('legend').children('a').click(r);
         jQuery('.vertical-tab-button', jQuery(elem).parents('.vertical-tabs')).children('a').click(r);
+        jQuery(window).bind('hashchange', r);

JQuery tab classes didn't appear to work as selectors, these must be getting added latter.... maybe :?

Marking as "Needs work" as:

a) no patch
b) I have no idea if this is the right way of doing this!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

podarok’s picture

Status: Needs work » Needs review
FileSize
626 bytes

here is a patch with Your changes

podarok’s picture

removed tabs

podarok’s picture

woops

podarok’s picture

Status: Needs review » Fixed

thanks
commited pushed to 7.x-2.x and 7.x-1.x dev versions

Alan D.’s picture

Cool, I must have been on the right track :)

Thanks

Status: Fixed » Closed (fixed)

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