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!
Comment | File | Size | Author |
---|---|---|---|
#3 | 1901654-panel-tabs-support-3.patch | 633 bytes | podarok |
#2 | 1901654-panel-tabs-support-2.patch | 626 bytes | podarok |
#1 | 1901654-panel-tabs-support-1.patch | 626 bytes | podarok |
Comments
Comment #1
podarokhere is a patch with Your changes
Comment #2
podarokremoved tabs
Comment #3
podarokwoops
Comment #4
podarokthanks
commited pushed to 7.x-2.x and 7.x-1.x dev versions
Comment #5
Alan D. CreditAttribution: Alan D. commentedCool, I must have been on the right track :)
Thanks