JDK-8115632 : Button text disappears when cut by scrollbar
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-05-30
  • Updated: 2016-12-20
  • Resolved: 2013-07-08
Related Reports
Relates :  
Description
1. Open the attached HTML file with WebLauncher.
2. Resize the WebLauncher's window so that the horizontal scrollbar appears and cuts a part of the button.
3. Hover the mouse over the scrollbar, the button text disappears.
4. Hover the mouse over the button, the button text gets back.
Comments
changeset: 4187:acb54c554301 user: lepopov date: Mon Jul 08 14:22:12 2013 +0400 files: modules/web/src/main/java/com/sun/javafx/webkit/prism/WCGraphicsPrismContext.java description: Fixed RT-30799 Button text disappears when cut by scrollbar
08-07-2013

The previous version of the fix was rather hiding the issue then fixing it. I finally found a correct solution: widget drawing just should be wrapped in a composite operation. http://javaweb.us.oracle.com/jcg/fx-webrevs/RT-30799/2
27-06-2013

Composite operations with empty rectangular clip applied are skipped because getGraphics() is called with checkClip argument set to true: getGraphics() returns null if called with checkClip=true and an empty rect clip is set. http://javaweb.us.oracle.com/jcg/fx-webrevs/RT-30799/1
06-06-2013