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

Visual Composer and Ajax issue #153

Closed
sstruemph opened this issue Feb 26, 2016 · 7 comments
Closed

Visual Composer and Ajax issue #153

sstruemph opened this issue Feb 26, 2016 · 7 comments
Assignees
Milestone

Comments

@sstruemph
Copy link

Map isn't loading with Visual Composer and the VC Tabs moduble (Tabbed Content) without page refresh.

To see the issue on the customer's site go to: http://www.tonicpit.com/kokoda/residences/#grid. Then click on "View Map". The map isn't drawing. If you refresh or go directly to the map tab then the map loads: http://www.tonicpit.com/kokoda/residences/#map.

screenshot-www tonicpit

@DevinWalker
Copy link
Member

Here's the fix for this:

//VC Tabs:
        $('.vc_tta-tab').on('click', function (e) {
            setTimeout(function (){
                // Something you want delayed.
                var panel = $('.vc_tta-panels-container').get(0);
                gmb.load_hidden_map(panel);
            }, 400);
        });

I just need to get it into both plugins now.

@DevinWalker DevinWalker self-assigned this Mar 16, 2016
@DevinWalker DevinWalker added this to the 2.1 Release milestone Mar 16, 2016
@Shelob9
Copy link
Contributor

Shelob9 commented Mar 16, 2016

Does Visual Composer have a tab loaded event?

@DevinWalker
Copy link
Member

@Shelob9 I tried to dig into it but they only ship minified versions of the js so it was hard to find any... I doubt it based on that. I did however, get it to work.

@DevinWalker
Copy link
Member

... but it's kinda hacky with the usage of setTImeout

@mathetos mathetos modified the milestones: 2.0.3, 2.1 Jul 12, 2016
@DevinWalker
Copy link
Member

jQuery('.vc_tta-tabs a').on('show.vc.tab', function(){ google.maps.event.trigger(window, 'resize', {}); }); from: https://wordpress.org/support/topic/map-showing-graybox-inside-a-tab-visual-composer?replies=4#post-8642549

@DevinWalker
Copy link
Member

DevinWalker commented Jul 15, 2016

Fixed here impress-org/Maps-Builder-Core@3bba681

@imrantushar
Copy link

@DevinWalker Thank You 👍

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

5 participants