google-map element in hidden state #10
Comments
This is related to GoogleWebComponents/google-map#33 |
|
Looks like we might need an event. If that's valuable in the general case, it would help the maps issue. It spawns from http://stackoverflow.com/questions/4700594/google-maps-displaynone-problem. Maps is tricky because the parent element needs a fixed height. There's no good way to detect when the map's parent becomes visible. I got something working by polling if |
I added the |
Thanks @morethanreal. @piotrdubiel I believe this is enough to work around the issue. Can you test and close if it's adequate? |
Thank very much you, resizing map on event solved the problem. |
Recently I had a problem with using google-map element inside core-animated-pages. I have layout like this:
Initially
#list
is selected, but when I select#details
, map shows up in weird state.I suspect that it's because map element renders when its parent has set
display: none
;If I change
to
in core-animated-pages.css, then everything is ok.
What's the best approach to fix this?
The text was updated successfully, but these errors were encountered: