shang445751741 / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
0 stars 0 forks source link

Plugin often doesn't reappear after container is hidden then made visible #673

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Place a GEPlugin instance inside an HTML container (i.e. <div>)
2. Hide that object (set visible=false)
3. Show that object (set visible=true)
4. Observe bug

What is the expected output or behavior? What do you see instead?
GEPlugin is expected to reappear instantly when the container is made visible 
again, however the plugin often does NOT reappear, while other times it appears 
only after a delay. 

Which plugin version are you using?
v6.0.3.2197 and at least two prior releases.

Which browsers and operating systems are affected?
Mac OSX (ALL VERSIONS): Firefox, Chrome and Safari (ALL VERSIONS)
Windows (ALL VERSIONS): Firefox, Chrome and Safari (ALL VERSIONS) 

Please provide any additional information (code snippets/links) below.
The exact use case here is using the Google Web Toolkit's TabLayoutPanel, 
Accordion, or any similar widget in which content may be temporarily hidden, 
however this bug is present anywhere an HTML element containing the plugin is 
hidden and subsequently made visible. This behavior can be observed on the 
Google Earth website's page for the plugin. 

To reproduce: Right-click, select Inspect Element, modify the <div> object 
holding the plugin by adding [style="display: none;"] to the tag, then repeat 
those steps and remove the style property.  (Screen shot attached).

As you'll notice in the screen shot, the "Terms of Use" link is still visible 
in the bottom-right corner, but the globe itself is not.

Original issue reported on code.google.com by OLD_chri...@geostellar.com on 22 Sep 2011 at 4:43

Attachments:

GoogleCodeExporter commented 9 years ago
Revision: in steps 2 and 3, the "visible=..." should be replaced with the 
equivalent css style rules within a style property.

Original comment by OLD_chri...@geostellar.com on 22 Sep 2011 at 4:47