Use goog.style.getContentBoxSize to calculate map size

This takes into account any border.

This fixes the problem reported by @bartvde in #1440.