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 82286

Summary: LAYOUT: Horizontal/vertical resizability connected with column aligment causes wrong resizing and position of components
Product: guibuilder Reporter: Jana Maleckova <janie>
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 136425    
Attachments: 82286_form
82286_java

Description Jana Maleckova 2006-08-09 15:01:59 UTC
NetBeans IDE Dev (Build 200608061800)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b94
Windows XP version 5.1 running on x86
cs_CZ (nb); Cp1250

Description:
============
form files are in attachment. 
1. Select buttons4-6, set feature "change horizontal resizability" and click on
button "Align left in column". Then all selected buttons get the same width
which is adapted to the widest of them. I think it's not correct. I expected
that buttons get left aligment in column and their width stays unchanged.

2. Another unexpected behaviour is in the second group of buttons (buttons1-3).
These components are in horizontal paralel group. And if you do the same steps
as were described in the first case. Their width is not only adapted to the
widest button in group but all buttons are adapted to frame's width.
Comment 1 Jana Maleckova 2006-08-09 15:02:54 UTC
Created attachment 32713 [details]
82286_form
Comment 2 Jana Maleckova 2006-08-09 15:03:09 UTC
Created attachment 32714 [details]
82286_java
Comment 3 Jan Stola 2006-08-10 10:33:35 UTC
I don't agree that the first test case is a bug - there are two possible 
results of this operation - the actual behaviour and the described expected 
behaviour. Unfortunately we cannot read user's mind to find out what he/she 
expects. Note that you can simply achieve the second result by the following 
steps:
1. switch of resizability of the buttons
2. perform the alignment
3. switch the resizability on

The second use case seems to be really incorrect.
Comment 4 asenk 2011-10-04 08:41:46 UTC
Second use case fixed in 7.1 - Free Design improvements
Comment 5 asenk 2011-10-04 08:42:16 UTC
Verified

Product Version: NetBeans IDE Dev (Build 201110030601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)