Rounded window corners are overpainted
| Originator: | alan.the.fiddler | ||
| Number: | rdar://23157053 | Date Originated: | oct 17 2015 |
| Status: | open | Resolved: | |
| Product: | OS X | Product Version: | 10.10.5 |
| Classification: | Reproducible: | always |
Summary: A window that should have rounded corners is painted with square corners. The corner radius on the NSThemeFrame is never set. Steps to Reproduce: The problem can be demonstrated by running the attached sample program. It is a Java program that uses native code to set the NSFullSizeContentViewWindowMask. I do not have a non-Java test program that illustrates the problem. 0. Ensure that Java JDK 1.8.0_45 is installed 1. Run this command: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -jar TestFullContentView.jar Expected Results: A small window with rounded corners should be displayed. Actual Results: Although rounded corners are drawn, the window paints outside the bounds of the rounded corners making the corners look square. The setCornerRadius: method on CALayer is never called. Version: 10.11.1 beta 15B38b and 10.10.5 Notes: The attached test program reliably demonstrates the bug using JDK 1.8.0_45 on two systems, one running OS X 10.10.5 and one running OS X 10.11.1. This test program does not demonstrate the bug if I use JDK 1.8.0_60 on either system. However, I have seen the bug using a different program on JDK 1.8.0_60. This variability suggests that the problem may be timing dependent. Configuration: I have observed this problem on OS X 10.11.0 and on multiple beta versions of OS X 10.11.1 and OS X 10.10.5. Attachments: 'Archive.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!