JDK-8115923 : ScrollPane with d3d pipeline shows objects outside of viewport
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 7u21
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-06-10
  • Updated: 2015-06-17
  • Resolved: 2013-07-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Description
On certain machines, scrolling a pane will draw some of the objects outside of the viewport. This has been documented with screenshots in StackOverflow item 15765034: http://stackoverflow.com/questions/15765034/javafx-scrollpane-showing-objects-outside-of-viewport. 

I am seeing the same problem. I have seen the problem on 3 different machines, two WinXP and one Win7. I have seen the same code work correctly on several other machines. On all problematic systems, the problem went away when VM argument "-Dprism.order=j2d" was used.

Here are the object types I saw get redrawn outside the viewport...
- fillRect() done on a Canvas
- background & border regions of an AnchorPane
- background region of a StackPane
- Separator object
- Text objects
- Line objects
Not all objects get drawn outside of the viewport, but for those that do, it is almost consistent. The exception was an AnchorPane background that was not drawn when slightly outside the viewport, but then was drawn when it was further outside the viewport. 

Object types that behaved correctly and did not get redrawn outside the viewport included Labels, TextFields, ChoicesBoxes, ToggleButtons, Paths, Panes, BorderPanes, VBoxes, HBoxes. I did notice there was one Button that was problematic whereas all other buttons behaved as expected.

Comments
This is really just a duplicate report of RT-30223.
31-07-2013

Is there a new reproducible test case for any of these examples? If not, then this bug should probably just be closed as a dup of RT-30223 which already documents the problems seen in the article on stackoverflow.com...
31-07-2013

Edit: I found that after calling canvas.toBack() the canvas elements no longer showed up when scrolled outside the ScrollPane's viewport. I'm also having this issue, a JavaFX Canvas in a ScrollPane in my case. JDK 1.7.0_25 -Dprism.verbose=true Output: Prism pipeline init order: d3d j2d Using t2k for text rasterization Using dirty region optimizations Prism pipeline name = com.sun.prism.d3d.D3DPipeline Loading D3D native library ... succeeded. Direct3D initialization succeeded (X) Got class = class com.sun.prism.d3d.D3DPipeline Initialized prism pipeline: com.sun.prism.d3d.D3DPipeline Maximum supported texture size: 16384 OS Information: Maximum texture size clamped to 4096 Windows 7 build 7601 D3D Driver Information: AMD Radeon HD 6900 Series \\.\DISPLAY1 Driver aticfx64.dll, version 8.17.10.1191 Pixel Shader version 3.0 Device : ven_1002, dev_6718, subsys_31301682 new alphas
30-07-2013