Google Maps Api v3 Maps in Ui-Tabs are cut

后端 未结 4 1575
孤街浪徒
孤街浪徒 2020-12-20 06:08

I know this is a common problem here, i already look at all the topics here for a solution, but still, when i change tabs i continue with this problem:

4条回答
  •  清酒与你
    2020-12-20 06:21

    This code google.maps.event.trigger(map, 'resize') should be in the pageshow like below.

    $('#map_result').live('pageshow',function(event){
        google.maps.event.trigger(map, 'resize');
    }); 
    

    By the way, have you found the solutions for this? I actually make it works using css.

提交回复
热议问题