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 208518 - "arguments" input has too small height in project properties
Summary: "arguments" input has too small height in project properties
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-16 15:18 UTC by nof8
Modified: 2012-06-14 09:59 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot with too small input height (130.41 KB, image/png)
2012-02-16 15:18 UTC, nof8
Details
screen shot (34.93 KB, image/png)
2012-06-13 04:15 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nof8 2012-02-16 15:18:57 UTC
Created attachment 115828 [details]
screenshot with too small input height

On Project Properties screen "Arguments" input has too small height to show underscore symbol. See attached screenshot.
Comment 1 Petr Somol 2012-02-17 17:39:22 UTC
The screenshot also shows that text fields and labels get cropped on the right side, indicating that the whole dialog design should be checked. Reassigning to php team.
Comment 2 Tomas Mysik 2012-02-20 08:34:22 UTC
Well, I don't think that this should be fixed in PHP area since then every such problem with any panel in Project Properties dialog would need to be handled by the panel author. Would not be better (and easier and more proper) to handle this in one place, in the Project Properties panel itself? Not sure what is the correct fix here, but perhaps:
- add scroolbars? or,
- set max width of any panel.

If I'm wrong, please, reassign back and tell me how can I fix it.

Thanks.
Comment 3 Jesse Glick 2012-02-20 21:41:32 UTC
Sorry, there is no known infrastructure fix for properties panels which try to stuff in too many controls; either reduce the intrinsic size of the panel, or just let the user resize the dialog if it is necessary. Historic attempts to make the dialog resize itself automatically failed to behave reasonably.
Comment 4 Tomas Mysik 2012-05-02 05:09:54 UTC
Petře, don't you know whether there is a way to correctly solve this issue? Putting the whole panel to the scroll pane does not seem to be a correct fix (at least to me).

Thanks for any advice.
Comment 5 Petr Somol 2012-05-02 12:19:35 UTC
Actually I have seen similar issues, and they generally follow from using freeform designer (=GroupLayout Swing layout manager) combined with deficiencies in panel design. In my experience switching to another layout (GridBagLayout) helps to avoid all problems with the slightly reduced height of one-line TextFields and ComboBoxes. As for the crop on the right - it seems to me that the panel adjusts its width to the largest minimal width of a component, in this case to the too long label in the bottom (T:\Apps\...). I would try to display the same information differently, either multi-line, or in a read-only TextArea. I would expect the rest of the panel would then adjust itself and all TextFields in it to the width of the enclosing dialog pane (in case of GridBagLayout I would set TextFields and the ComboBox to have the Fill set to Horizontal with nonzero X weight).
Comment 6 Tomas Mysik 2012-05-22 08:14:29 UTC
Should be fixed. Thanks for reporting.

http://hg.netbeans.org/web-main/rev/e35de8f9c978
Comment 7 Quality Engineering 2012-05-23 08:44:50 UTC
Integrated into 'main-golden', will be available in build *201205230300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e35de8f9c978
User: Tomas Mysik <tmysik@netbeans.org>
Log: #208518 - "arguments" input has too small height in project properties
Comment 8 Vladimir Riha 2012-06-12 07:45:09 UTC
I checked all 4 run options:
- Local Web Site - all OK
- Remote Web Site - all OK
- Script - if the "Arguments" or "PHP Options" are too long, it again shifts buttons to the right, just like in the screenshot from description
- Built-in Web Server - path to router script is OK, long hostname again shifts elements to the right, but I don't think there is someone using such a long hostname 


GTK L&F
Product Version: NetBeans IDE Dev (Build 201206110001)
Java: 1.6.0_33; Java HotSpot(TM) Client VM 20.8-b03
System: Linux version 3.0.0-20-generic-pae running on i386; UTF-8; en_US (nb)
Comment 9 Tomas Mysik 2012-06-13 04:15:16 UTC
So now, I hope. Attaching screenshot...

http://hg.netbeans.org/web-main/rev/60322f83cff9
Comment 10 Tomas Mysik 2012-06-13 04:15:39 UTC
Created attachment 120758 [details]
screen shot
Comment 11 Quality Engineering 2012-06-14 06:07:09 UTC
Integrated into 'main-golden', will be available in build *201206140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/60322f83cff9
User: Tomas Mysik <tmysik@netbeans.org>
Log: #208518 con't - "arguments" input has too small height in project properties
Comment 12 Vladimir Riha 2012-06-14 09:59:55 UTC
verified, thanks


Product Version: NetBeans IDE Dev (Build 201206140001)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Linux version 3.0.0-21-generic-pae running on i386; UTF-8; en_US (nb)