The code completion popup overlay cannot display items correctly when user scroll up/down the list.
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 13
### What happened
The code completion popup window may not function right when the window shows up near the bottom edge of the Netbeans IDE's window.
### How to reproduce
This issue is really weird. We can reproduce it ONLY in a particular situation.
1. Activate the Look and Feel - `FlatLaf Light`.
2. Coding in Java.
3. Make a statement close to the bottom edge of the Netbeans IDE's window. For example, the statement may look like the following:
```Java
String str = new String();
str.
```
4. Move your caret to the line `str.` and behind the dot.

5. Press `ctrl+\` to call out the code completion popup window.

6. Scroll back and forth the "Option list" by Arrow_DOWN or mouse scrolling wheel or dragging the scroll bar of the Option list.
Then, you will see the Option list could be stuck and don't get refreshed anymore.
Note:
1. If you switch the Look and Feel to the `Windows` one, everything will be fine.
2. The issue only occurs when the first entry in the Option list has a JavaDoc. Everything goes fine If the first entry coming to the Option list doesn't have a JavaDoc(I mean, no need to popup the JavaDoc window).
### Did this work correctly in an earlier version?
Apache NetBeans 12.6
### Operating System
Win10 pro 64bit
### JDK
Oracle JDK 11.0.8
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
Contributor guide
Research direction
Start by reproducing the issue in Apache NetBeans 13 on Windows 10 with FlatLaf Light, Java code, the completion popup near the window bottom, and a first entry with JavaDoc. Exercise the option list with arrow keys, mouse-wheel scrolling, and scrollbar dragging. Done means the list continues refreshing correctly in this situation, while the Windows look and feel and no-JavaDoc cases remain unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100