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 95176

Summary: LAYOUT: Dragging vertically a component that spans horizontally a container resizes the container
Product: guibuilder Reporter: ahristov <ahristov>
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 136425    
Attachments: Java Source
Form file

Description ahristov 2007-02-11 12:46:53 UTC
If a component inside a container spans completely the container horizontally
(for example, a label that stretches to both ends of a panel in order to remain
centered), when that component is dragged vertically the container is resized
because the designer insists in placing a gap on at least one of the sides that
didn't have it. 

In the enclosed test case, drag any of the blue labels vertically keeping it
inside the panel. The panel is always resized horizontally.
Comment 1 ahristov 2007-02-11 12:47:33 UTC
Created attachment 38327 [details]
Java Source
Comment 2 ahristov 2007-02-11 12:49:34 UTC
Created attachment 38328 [details]
Form file
Comment 3 Petr Dvorak 2008-04-28 11:46:26 UTC
Reproducible in NB 200804280002 (DEV).
Comment 4 asenk 2011-10-04 09:57:12 UTC
Still valid

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)
Comment 5 Tomas Pavek 2012-06-14 09:32:05 UTC
I can reproduce this in 7.0, but not in 7.1 or 7.2.
Should be fixed with changes done for 7.1; if moving/resizing only in one dimension, the layout should be kept intact in the other.