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 244206 - Options panel does not dynamically resize to accomodate several categories and/or font changes.
Summary: Options panel does not dynamically resize to accomodate several categories an...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
: 243308 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-30 17:19 UTC by KAB
Modified: 2014-05-23 07:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
overflow toolbar (87.95 KB, image/png)
2014-05-02 14:07 UTC, Theofanis Oikonomou
Details
scrollbar (69.66 KB, image/png)
2014-05-02 14:08 UTC, Theofanis Oikonomou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description KAB 2014-04-30 17:19:42 UTC
Our application is built on the Netbeans platform, and we currently have multiple custom Options panel/categories. Is there a way to make the Options panel resize according to its contents? Currently if we add many custom Options category panels, the Options panel doesn't resize (we want icons/categories smaller, adjust text size, etc) to accommodate all of them. Say there are 15 categories in our application. The current default Options panel is not wide enough (horizontal width) to show all of these, most of the right-side categories are not visible at all (they are hidden) unless we manually drag the right-side border outward, and there is usually not enough room on a small monitor to even do this. 
Atleast there should be a way to add a scroll-bar to scroll to the left/right to see more Options categories. 
Also, our application has a way to change the Look and Feel themes, so when a user makes the font bigger, the situation is worse because even more Options categories are hidden/cut off from visibility. 
Ideally we want the whole panel to adjust its height/width/font to make all categories visible, along with icons and labels. Even putting them on two rows would be acceptable.
Comment 1 Theofanis Oikonomou 2014-05-02 14:06:55 UTC
Well although 15 categories seem a lot I can see your point. Two solutions come in my mind:
1) use an overflow toolbar, like the one used in IDE's toolbars
2) use a scroll bar in the categories panel

not sure which one is the most appropriate solution though. I will add screenshot's of both choices in a bit
Comment 2 Theofanis Oikonomou 2014-05-02 14:07:39 UTC
Created attachment 147072 [details]
overflow toolbar
Comment 3 Theofanis Oikonomou 2014-05-02 14:08:11 UTC
Created attachment 147073 [details]
scrollbar
Comment 4 Theofanis Oikonomou 2014-05-02 14:09:11 UTC
Stando, any thoughts/preferences on the UI? Thank you
Comment 5 KAB 2014-05-02 17:03:48 UTC
I prefer the Scrollbar solution.  Is there a way to currently do this? If so, can you provide guidance on how to implement this? 

Otherwise, will you be able to provide a handle/API for this soon? When can we expect this?

Thanks
Comment 6 Theofanis Oikonomou 2014-05-02 18:07:13 UTC
No, currently there is no API for you to control it. For the scrollbar option only org.netbeans.modules.options.OptionsPanel needs to be modified. This should be expected once UI change is approved in following dev builds and next official release.
Comment 7 Stanislav Aubrecht 2014-05-05 07:58:32 UTC
(In reply to Theofanis Oikonomou from comment #4)
> Stando, any thoughts/preferences on the UI? Thank you

Actually I'd prefer just two scroll buttons - one on each side of the category list panel - and mouse wheel scrolling. But it would be a bit more work to implement. Perhaps you could copy/paste some code from editor tabs implementation which has similar buttons.
Comment 8 Theofanis Oikonomou 2014-05-16 15:50:17 UTC
Changeset: 622475c4da02
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2014-05-16 17:49
Message:
Comment 9 Theofanis Oikonomou 2014-05-16 15:53:06 UTC
(In reply to KAB from comment #5)
> I prefer the Scrollbar solution.  

This is what got implemented. Now when you resize options window and it cannot fit all categories a horizontal scrollbar appears making it easier to locate and select the desired category.
Comment 10 KAB 2014-05-16 16:41:17 UTC
Which version has this been implemented in?  Can we pull the latest version of NB 7.4?
Comment 11 Theofanis Oikonomou 2014-05-19 12:11:29 UTC
(In reply to KAB from comment #10)
> Which version has this been implemented in?  Can we pull the latest version
> of NB 7.4?

This is implemented in trunk. It will be part of next official release. You can get it either by fetching latest changes from core-main and build ide from sources or wait for it to be propagated in silver-main. Then it will be available as daily build from http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 12 Quality Engineering 2014-05-20 02:50:29 UTC
Integrated into 'main-silver', will be available in build *201405200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/622475c4da02
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #244206 - Options panel does not dynamically resize to accomodate several categories and/or font changes.
Comment 13 Theofanis Oikonomou 2014-05-23 07:29:46 UTC
*** Bug 243308 has been marked as a duplicate of this bug. ***