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 - LAYOUT: Dragging vertically a component that spans horizontally a container resizes the container
Summary: LAYOUT: Dragging vertically a component that spans horizontally a container r...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks: 136425
  Show dependency tree
 
Reported: 2007-02-11 12:46 UTC by ahristov
Modified: 2012-06-14 09:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java Source (4.61 KB, text/plain)
2007-02-11 12:47 UTC, ahristov
Details
Form file (5.71 KB, text/plain)
2007-02-11 12:49 UTC, ahristov
Details

Note You need to log in before you can comment on or make changes to this bug.
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.