divio/django-cms — Issue #1064: GoogleMap Plugin: div for containing the map does not exist when the js is executed
Author: rodriguealcazar
Created: 2011-10-20 21:59:16+00:00
State: open

Following [488edcb20918f09b8e5fd177f8f1757917aad949](https://github.com/divio/django-cms/commit/488edcb20918f09b8e5fd177f8f1757917aad949#cms/plugins/googlemap/templates/cms/plugins), the `

` that should contain the map. This causes a `TypeError: Cannot read property 'offsetWidth' of null` at main.js:30 because the Javascript tries to access attributes on a DOM element that has not been loaded yet.

The obvious solution would be to declare the `

` before the `