This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239319 - Better handling of too many tabs situation
Summary: Better handling of too many tabs situation
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-10 15:33 UTC by mclaborn
Modified: 2014-01-06 15:26 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
screen shot of problem (26.43 KB, image/png)
2013-12-10 15:33 UTC, mclaborn
Details
Before: source view open (29.72 KB, image/png)
2013-12-11 14:42 UTC, mclaborn
Details
After: design view, palette showing, tabs cut off (34.76 KB, image/png)
2013-12-11 14:43 UTC, mclaborn
Details
another screen shot (27.33 KB, image/png)
2013-12-24 17:42 UTC, mclaborn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2013-12-10 15:33:18 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Linux version 3.2.0-57-generic running on amd64
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08

I have multi-row tabs enabled.  (Also --fontsize 16 in netbeans.conf).  LAF = Nimbus.
Occasionally, the labels on the left most tabs will be cut off on the left side.  It seems to happen most frequently when the GUI designer is shown.  Many times, switching from the GUI designer to the source view causes the problem to go away.
Comment 1 mclaborn 2013-12-10 15:33:45 UTC
Created attachment 143016 [details]
screen shot of problem
Comment 2 Stanislav Aubrecht 2013-12-11 13:29:56 UTC
Cannot reproduce in

Product Version: NetBeans IDE Dev (Build 20131210-226ec9ff52fb)
Updates: Updates available
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.9 running on x86_64; UTF-8; en_US (nb)


Reporter, can you provide exact steps to reproduce the tab state as on your screen shot?
Comment 3 mclaborn 2013-12-11 14:41:09 UTC
Here is a scenario that produced the failure for me today:

- 15 files open in the editor area.  3 rows of tabs.
- A GUI form file opened in the source view
- Switch to the Design view for the current file.  This causes the right side of the window to show the Palette and Properties views and the tab labels become cut off.  I'll attach new screen shots for this.
Comment 4 mclaborn 2013-12-11 14:42:36 UTC
Created attachment 143061 [details]
Before: source view open
Comment 5 mclaborn 2013-12-11 14:43:10 UTC
Created attachment 143062 [details]
After: design view, palette showing, tabs cut off
Comment 6 Stanislav Aubrecht 2013-12-11 14:44:56 UTC
(In reply to mclaborn from comment #5)
> Created attachment 143062 [details]
> After: design view, palette showing, tabs cut off

Well, there's nothing wrong in this screen shot. There's simply not enough horizontal space to put all tabs into three rows.
Comment 7 mclaborn 2013-12-11 14:59:02 UTC
Something has changed in this behavior recently, probably in 7.4.

If there are more tabs than will fit in the space, shouldn't the overflow windows be moved to the "extras" (sorry, don't know the correct term) menu, accessible via the down arrow on the right side?

Failing that, if a portion of the tab must be cut off, it would be more helpful if it was the right side of the tab that was truncated, as the left side is the more significant (at least in my case).
Comment 8 mclaborn 2013-12-11 15:01:31 UTC
Antoher thought: I would be OK with a temporary overflow to a 4th row of tabs (even though the limit in the options is 3) to allow for the palette, etc to show.
Comment 9 Stanislav Aubrecht 2013-12-11 15:10:49 UTC
Multi-row tabs are just several JTables in a JScrollPane so there's no straightforward way of implementing 'right-hand side cut-off'.

A temporary extra row isn't a solution either. You can open 100 files and there's no way to fit them into 4 (or 5 or 6 ...) rows.

The tabs could show only a sub-set of opened files. But only as a new switch in Options window as not everybody would be happy with this solution.
Please feel free to file a new RFE for it (or reopen and change this bug to 'Enhancement') but I'm closing this as 'invalid' as I don't see any error in the multi-row tab behavior.
Comment 10 mclaborn 2013-12-11 15:59:12 UTC
Changing this from a bug to an enhancement request (even though I feel like it is really a bug).

Please find a better way to handle the situation when multi-line tabs are enabled and there are too many tabs to fit in the allowed space.  My primary objection is that it is unacceptable to cut off the left side of a tab.  

From a user perspective, moving least recently used files to the extras menu (down arrow) until the tabs all fit is an acceptable solution.
Comment 11 mclaborn 2013-12-24 17:42:47 UTC
Created attachment 143428 [details]
another screen shot

See this most recent screen shot.  Multiple tab rows is still set at 3.  The last tab on the right is barely visible.  Shouldn't it be on a new row?

This really seems like a BUG to me rather than an enhancement request.  Or is this a different problem?
Comment 12 Stanislav Aubrecht 2014-01-06 09:40:58 UTC
(In reply to mclaborn from comment #11)
> Created attachment 143428 [details]
> another screen shot
> 
> See this most recent screen shot.  Multiple tab rows is still set at 3.  The
> last tab on the right is barely visible.  Shouldn't it be on a new row?
> 
> This really seems like a BUG to me rather than an enhancement request.  Or
> is this a different problem?

Please file it as a new bug (with steps to reproduce), thanks.
Comment 13 mclaborn 2014-01-06 15:26:57 UTC
Done. Bug 240032