| Project: | GMap Module |
| Version: | 7.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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!
Comments
#1
here is a patch with Your changes
#2
removed tabs
#3
woops
#4
thanks
commited pushed to 7.x-2.x and 7.x-1.x dev versions
#5
Cool, I must have been on the right track :)
Thanks
#6
Automatically closed -- issue fixed for 2 weeks with no activity.