-
Notifications
You must be signed in to change notification settings - Fork 228
Description
This is a followup to #2909 and #3056: the fix for this issue fixed popup placement if multiple warnings are shown.
But in my sample, this popup alignment might fail:
In the screenshot, two warnings are aligned side by side, and the right one is clipped, below them is a a informational message:

(red marks are important for reproducing, see below)
If I move the cursor inside the popup, it jumps and the two warnings are placed below each other (as expected):

This can be reproduced ony with special steps.
- First of all, you have to create a project from the archetype "org.wildfly.archetype:wildfly-jakartaee-webapp-archetype:37.0.1.Final"
- open "pom.xml" and add those dependencies:
<dependency> <groupId>org.glassfish.web</groupId> <artifactId>jakarta.servlet.jsp.jstl</artifactId> <version>3.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>jakarta.servlet.jsp.jstl</groupId> <artifactId>jakarta.servlet.jsp.jstl-api</artifactId> <version>3.0.1</version> <scope>provided</scope> </dependency>
- Now two warnings should be reported for the second version declaration:

In my tests, one of the warnings disappeared after closing and opening pom.xml, in the end I could only bring it back the deleting and creating the project again. - Now hover the cursor over the "version" element so that a single warning is reported.
- Move the cursor fast to the ".0." part of the version "3.0.1". The wrong popup is shown. It is important to jump over the "3" part fast, as it has a different tooltip, and if this one is shown, the problem does not happen. The red marks in my first screenshot point to the cursor positions.
If this does not work for you on first try, you might have to close pom.xml and reopen it again, hoping that the two warnings are still present.
Here is another version of the popup, where the order of the two warnings is swapped and the one to the right is barely visible:
