cybersthang / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

Traffic button remains visible above Info bubbles or using the Tabbed Max Content extension in Maximized size #113

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. (Using FF, not verified in other browsers) use the Tabbed Max Content
extension with the ExtMapTypeControl extension with traffic enabled.
2. Enlarge/maximize an info bubble and noticed how the traffic button
remains visible and on top of the maximized bubble. All other controls on
page correctly hide when something is maximized.

The traffic button's visibility style rule is interfering with it's parent
container's visibility rule.

How to fix:
1. remove this line:
trafficDiv.style.visibility = 'hidden';

2. Modify the next declared listener to use display instead of visibility:
GEvent.addListener(me.trafficInfo, "changed", function(hasTrafficInView) {
   if (hasTrafficInView) {
     trafficDiv.style.display = 'block';
   } else {
     trafficDiv.style.display = 'none';
   }
});

Original issue reported on code.google.com by mynameis...@gmail.com on 20 May 2009 at 8:00

GoogleCodeExporter commented 8 years ago
Thanks for the report!

Original comment by pamela.fox on 25 May 2009 at 4:51