Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab Container: Powermail and Google Recaptch #35

Open
Sonezi opened this issue Dec 4, 2017 · 0 comments
Open

Tab Container: Powermail and Google Recaptch #35

Sonezi opened this issue Dec 4, 2017 · 0 comments

Comments

@Sonezi
Copy link

Sonezi commented Dec 4, 2017

On page i have tabs(4) content element, with tab(1) powermail + recaptcha, tab(2) powermail + recaptcha, tab(3)download (not relevant) and tab(4) contact with maps2.
Problem is that every tab loads its content again on same page: per example if i have this two powermail forms with recaptcha, recaptcha library loads twice on page and that makes a problem with loading recaptcha when you changing from tab1 to tab2. Plugin maps2 generate centered map on loading page but when you click on tab containing maps2 plugin a map window is gray out it doesn't know where is the height and width of container, because tab element generate new size properties.. if you trigger via javascript, map windows is fine but it cannot center map on pin by the same reason it doesnt know how to calculate height and width.
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { // Trigger map resize when tab is shown var map = document.getElementById('maps2-410'); // var currCenter = map.getCenter(); google.maps.event.trigger(map, "resize"); // map.getCenter(); });

Do you have some solution to this problem?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant