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 207919 - Project Configuration cut off
Summary: Project Configuration cut off
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: UI
: 200128 209910 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-30 15:26 UTC by _ gtzabari
Modified: 2012-03-28 12:48 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of config dropdown list in main toolbar of NB71 (87.39 KB, image/png)
2012-01-31 08:57 UTC, Petr Somol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2012-01-30 15:26:27 UTC
Product Version: NetBeans IDE Dev (Build 201201110601)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Users\g.tzabari\.netbeans\dev
Cache directory: C:\Users\g.tzabari\.netbeans\dev\var\cache

1. Load a project 
2. Create a build configuration with a long name, in my case I use: "windows-i386-vs10-debug"
3. Notice how the configuration name combo-box cuts off the active configuration name.
4. Notice how the configuration name is cut off even when you click on the combo-box.

Expected behavior: The combo-box should grow to accommodate its contents, at the very least when it is expanded.
Comment 1 Petr Somol 2012-01-31 08:57:17 UTC
Created attachment 115406 [details]
screenshot of config dropdown list in main toolbar of NB71
Comment 2 Petr Somol 2012-01-31 09:10:13 UTC
Arguably this is not a defect, the size of Config dropdown list in main toolbar is limited by design. Growing its size within the toolbar dynamically is impossible as it would damage user experience elsewhere. Making the default size larger is theoretically possible, but the current size limit has its meaning following from the variation of systems on which NB runs - in some cases screen width is a problem and we need to ensure that the complete toolbar fits in in all supported cases.

Another point is that the request to be able to get to the full configuration name somehow quick is reasonable. Very long configuration names now indeed are cut off even when the drop-down list is open. Therefore I am changing this issue to Enhancement request, so that some way is found to display full names.

Passing to project people for further evaluation. Options to consider in my view all relate to the open state of the drop-down list - then if there are too long items, these can be displayed in full when mouse over, or a hint with full length name can be displayed as is the case with Project paths when mouse over Project name in Project window. However, the hint when Config drop-down list is not open should remain as it is to keep consistency with other hints in main toolbar.
Comment 3 _ gtzabari 2012-01-31 18:34:32 UTC
I agree with your proposed solution.

The only thing I would add is that unlike project names, we always have enough space to display the configuration name when the list is open (since expanded lists display on top of everything else and this list has a lot of space to its right) so it might make sense to just display the full names in this case.
Comment 4 Jesse Glick 2012-02-14 22:16:22 UTC
Clearly the desired behavior is to just make the popup as wide as it needs to be. Unfortunately I am not sure in Swing how to do that. According to [1] it is not easy but there are some workarounds.

[1] http://stackoverflow.com/questions/956003/how-can-i-change-the-width-of-a-jcombobox-dropdown-list
Comment 5 Jesse Glick 2012-02-14 22:27:56 UTC
core-main #0385d6b14071
Comment 6 Jesse Glick 2012-03-27 21:14:25 UTC
*** Bug 209910 has been marked as a duplicate of this bug. ***
Comment 7 Petr Somol 2012-03-28 12:48:16 UTC
*** Bug 200128 has been marked as a duplicate of this bug. ***