Closed bonekost closed 6 years ago
@bonekost hello
Could you provide a small codesandbox/jsifddle with that so I can help easier.
Until then I can only suggest maybe doing that in $nextTick
as that event occurs before actually it's displayed in DOM.
handleTabChange(tabIndex, newTab, oldTab){
this.$nextTick(()=> {
window.google.maps.event.trigger(document.getElementById('regularMap'), 'resize')
})
}
If that doesn't work please provide a fiddle example. If it works we will have to close the issue as $nextTick
is more Vue core related
@cristijora it works with $nextTick
for me.
Thanks
If google maps is placed in another tab than first it has to be resized for showing (according to this stackoverflow.com)
but if you use it with
tab-change
event it doesn't worke.g: