I am trying to get a Google map running on my site. The problem is that the card looks like this:

I understand that this is a known issue with recalibrating an object after it has been shown. (Changed from display: none; to display: block; which is)
I use jQueryUI tabs and display: none; in a div that encapsulates tabs.
I tried to remove the tabs and display everything as a block at startup, and then make changes to window.load - but it's pretty ugly when things with pictures move by themselves after you have loaded.
This JSFiddle demonstrates how I want (simplified), although it is erroneous because I cannot get it to work properly (it does not show the map at all).
Is there any other way to do this - or do I need to find a different kind of layout for my map functionality?
source share