[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-openjfx-dev
Subject: RFR: 8186904: TableColumnHeader: resize cursor lost on right click
From: Marius Hanl <github.com+66004280+maran23 () openjdk ! java ! net>
Date: 2021-04-28 20:31:08
Message-ID: d_1aaKLGo898YyObS0DQRiZ9XDopoOdlEyE4YItyUXQ=.f4c43c09-1f0a-4de9-ba1e-7770ad5ea636 () github ! com
[Download RAW message or body]
This PR is fixing a bug, when a right click on a table column is performed.
By doing that, the table columns will lose the resize cursor thus they can not be \
resized anymore.
The reason for that is that the **columnDragLock** will not reset (to false).
This flag is set to true, when a mouse press is detected (on a table column) and to \
false, when a mouse release is detected. Unfortunately, this flag is not reset on a \
right click, because a check (**#isPopupTrigger()**) will guard against it.
With this PR, this flag will always reset to false inside the mouse released handler.
-------------
Commit messages:
- 8186904: Fixed resize cursor got lost when right click table column
Changes: https://git.openjdk.java.net/jfx/pull/483/files
Webrev: https://webrevs.openjdk.java.net/?repo=jfx&pr=483&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8186904
Stats: 56 lines in 3 files changed: 50 ins; 3 del; 3 mod
Patch: https://git.openjdk.java.net/jfx/pull/483.diff
Fetch: git fetch https://git.openjdk.java.net/jfx pull/483/head:pull/483
PR: https://git.openjdk.java.net/jfx/pull/483
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic