netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Tab's Close button not showing on partially hidden left tab

Open NoeGuerreroAscencio opened this issue 2 years ago • 2 comments

Apache NetBeans version

Apache NetBeans 15

What happened

When you have several tabs open, and they don't fit you have to scroll using the arrows, everything good until here but when you want to open that one tab that's on the left partially showing (because you have several open) the close button doesn't show up when you hover the tab, however they do close when you click when you click on them where there should be the close button showing, but they don't show up if the tab is just partially hidden. It bothers a lot because I have close the tab several times when i wanted to work on them, sometimes you have a lot of tabs open and you need to navigate through the tabs captura

How to reproduce

No response

Did this work correctly in an earlier version?

Apache NetBeans 13

Operating System

Windows 10

JDK

8 update 321 compilation 1.8.0_321-b07

Apache NetBeans packaging

Apache NetBeans platform

Anything else

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

NoeGuerreroAscencio avatar Oct 05 '22 23:10 NoeGuerreroAscencio

not sure how to reproduce this. The close button is rendered in my case even if only a few pixel are visible. (mouse is pointing at it, its just not on the screenshot) image

do you know that you can use the mouse wheel to navigate through the tabs instead of the arrow buttons?

mbien avatar Oct 06 '22 05:10 mbien

I can confirm this issue. I'm using windows 10

rasa-app avatar Oct 09 '22 18:10 rasa-app

@mbien maybe it's because you have a different theme and color and that's why you can't replicate it.

NoeGuerreroAscencio avatar Oct 19 '22 03:10 NoeGuerreroAscencio

@NoeGuerreroAscencio I tested with the same theme (FlatLaf) just the dark version of it on linux. This issue might be windows specific since all reporters mentioned windows so far.

You could also try a more recent JDK, since NetBeans doesn't support JDK 8 anymore. JDK 17 would be the most recent long term release.

mbien avatar Oct 19 '22 10:10 mbien

@mbien Just updated to JDK 17 (confirmed with "java -version" through CMD), the problem still persists, problem might be Windows specific just as stated in bug report.

NoeGuerreroAscencio avatar Oct 26 '22 00:10 NoeGuerreroAscencio

I have the same issue on CentOS 7.6/Gnome 3 with NetBeans 16. It's easy to reproduce:

  1. Open more tabs than will fit in the width of the tab bar (or resize the window)
  2. Click the right arrow button to reveal tabs to the right (not always necessary)
  3. Move your mouse over the leftmost tab that is just visible

There is no close button visible, but the tooltip indicates it will close and clicking does in fact close the tab.

This appears to be an issue when using FlatLaf, but not with Metal (I haven't tried other LaFs).

rkeen-siemens avatar Jan 17 '23 15:01 rkeen-siemens