From c34e582f1a7d3f39f12ea63582b2b522c84c3013 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 28 Aug 2013 12:36:00 -0600 Subject: [PATCH] Toggle display instead of visibility for proper click handling --- examples/popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/popup.js b/examples/popup.js index 4d966a9b02..dfaee5651d 100644 --- a/examples/popup.js +++ b/examples/popup.js @@ -38,7 +38,7 @@ var closer = document.getElementById('popup-closer'); * @return {boolean} Don't follow the href. */ closer.onclick = function() { - container.style.visibility = 'hidden'; + container.style.display = 'none'; return false; }; @@ -63,6 +63,6 @@ map.on('click', function(evt) { overlay.setPosition(coordinate); content.innerHTML = '

The location you clicked was:

' + hdms + ''; - container.style.visibility = 'visible'; + container.style.display = 'block'; });