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...

<?php
         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!

Files: 
CommentFileSizeAuthor
#3 1901654-panel-tabs-support-3.patch633 bytespodarok
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1901654-panel-tabs-support-3.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#2 1901654-panel-tabs-support-2.patch626 bytespodarok
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1901654-panel-tabs-support-2.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#1 1901654-panel-tabs-support-1.patch626 bytespodarok
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1901654-panel-tabs-support-1.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

Status:Needs work» Needs review
StatusFileSize
new626 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1901654-panel-tabs-support-1.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

here is a patch with Your changes

StatusFileSize
new626 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1901654-panel-tabs-support-2.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

removed tabs

StatusFileSize
new633 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1901654-panel-tabs-support-3.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

woops

Status:Needs review» Fixed

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

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

Thanks

Status:Fixed» Closed (fixed)

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