openjdk-jfx icon indicating copy to clipboard operation
openjdk-jfx copied to clipboard

Bounds are falsely computed with bounds property listener

Open phamvanthanh opened this issue 6 years ago • 3 comments
trafficstars

Hi

I am sorry that I have no luck to produce this as a test.

In my building app, every time I add listener to the bounds property as below, the bound is falsely computed and could not catch mouse events too.

MeshView shape = new MeshView();
.....

shape.boundsInParentProperty().addListener((observable, oldValue, bound) -> {
        //DO NOTHING
        });

What could possibly reasons for this?

Thanks

phamvanthanh avatar May 05 '19 11:05 phamvanthanh

What does "the bound is falsely computed" mean? What "could not catch mouse events"?

Without a test case it's going to be near-impossible to understand the issue.

nlisker avatar May 05 '19 20:05 nlisker

Shape presented on scene but the bounds are empty

BoundingBox [minX:0.0, minY:0.0, minZ:0.0, width:-1.0, height:-1.0, depth:0.0, maxX:-1.0, maxY:-1.0, maxZ:0.0] image

phamvanthanh avatar May 06 '19 12:05 phamvanthanh

@phamvanthanh - As @nlisker requested, please provide a short, standalone test program that demonstrates this failure. As it is, there is not enough information to proceed.

kevinrushforth avatar May 06 '19 14:05 kevinrushforth