yueying0083 / javachromiumembedded

Automatically exported from code.google.com/p/javachromiumembedded
0 stars 0 forks source link

Mac: Switching between visible and invisible CefBrowser (UI) components doesn't hide the last visible one on windowed rendering mode #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use latest SVN-Trunk (r94)
2. Apply attached patch 2014-07-03_tests_simple_use_jtabbedpane.patch
3. Start tests.simple.MainFrame
4. You'll see a tabbed browser with two CefBrowser instances

What is the expected output? What do you see instead?
If you switch between the two tabs, the selected CefBrowser tab should be 
displayed. Instead you'll get the following behavior:
1. On Startup the first tab is displayed
2. Switch to the second tab, the second tab is displayed
3. Switch back to the first tab. You'll see the content of the second tab 
instead of the first one 

What version of the product are you using? On what operating system?
Latest SVN-Trunk (r94)

Please provide any additional information below.
This problem occurs only on Mac using windowed rendering mode. OSR or Windows 
is not affected.
The reason for this is, that the "setVisible" and "setHidden" signals aren't 
forwarded correctly to the native CALayer part.

Please see my attached patch file "2014-07-03_fix_show_hide_issue.patch" for a 
solution of this issue.
Please note: This patch relies on issue 94 (Update to CEF version 3.1916.1749). 
So you have to apply the patch of issue 94 first.

Original issue reported on code.google.com by k...@censhare.de on 3 Jul 2014 at 10:02

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, fixed in revision 97.

Original comment by magreenb...@gmail.com on 10 Jul 2014 at 5:01