RFR: 8261221: Tooltip bigger than screen size blinks - shows and hides over and over again

Ajit Ghaisas aghaisas at openjdk.java.net
Tue Feb 23 11:00:47 UTC 2021


On Fri, 5 Feb 2021 10:46:49 GMT, Paweł Kruszczyński <github.com+3855776+xardif at openjdk.org> wrote:

> `Tooltip` is no longer hiding upon receiving `MouseEvent.MOUSE_ENTERED_TARGET` event inside it. Pressing mouse on overlaying tooltip also kills the tooltip, so the infinite duration tooltip can be closed.

modules/javafx.controls/src/main/java/javafx/scene/control/Tooltip.java line 862:

> 860:         private boolean hideOnExit;
> 861:         private boolean cssForced = false;
> 862:         private boolean mouseInsideTooltip = true;

Default value of this member should be false.
This boolean indicates a state where mouse is inside a Tooltip - it cannot be assumed true to begin with.

-------------

PR: https://git.openjdk.java.net/jfx/pull/395


More information about the openjfx-dev mailing list