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 203567 - Snap-to Right Side of Panel is in Outer Space
Summary: Snap-to Right Side of Panel is in Outer Space
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 7.1
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 06:49 UTC by MackSix
Modified: 2011-10-12 15:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project that exhibits the error. (24.04 KB, application/zip)
2011-10-12 06:49 UTC, MackSix
Details
Screenshot of action. (179.65 KB, image/png)
2011-10-12 06:50 UTC, MackSix
Details
Another Screenshot (170.71 KB, image/png)
2011-10-12 07:01 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-10-12 06:49:17 UTC
Created attachment 111904 [details]
Project that exhibits the error.

1) Open attached project.
2) Grab jScrollPane2 left side handle and expand vertically to the right.
3) Keep pulling out past right side of jPanel2 and jFrame. Notice that jPanel2 snap-to guide lines will appear outside of jFrame in space and allow jScrollPane2 to snap to outer space.

See attached screenshot.

Expected results: jPanel2 snap-to guides should be inside jPanel2, not in outer space.

Product Version: NetBeans IDE Dev (Build 201110110600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 1 MackSix 2011-10-12 06:50:03 UTC
Created attachment 111905 [details]
Screenshot of action.
Comment 2 MackSix 2011-10-12 06:53:26 UTC
Correction for step #2: Grab jScrollPane2 right side handle...
Comment 3 MackSix 2011-10-12 07:01:58 UTC
Created attachment 111906 [details]
Another Screenshot

See this screenshot. It shows jLabel1 extends outside of jFrame. The Snap-to guides in outer space are actually jLabel2 and not jPanel2. 

JPanel2 Snap-to guides are missing.
Comment 4 MackSix 2011-10-12 07:12:00 UTC
It is hard for me to tell what snap-to guides they are. They still could be jPanel2 snap-to guides.
Comment 5 Jan Stola 2011-10-12 15:18:04 UTC
There is nothing incorrect in this case. It is just the layout of the attached form that is built in that unfortunate way. jPanel2 is too small for its layout to fit in. Some parts of its layout extend behind its visible bounds (for example, jLabel1 has fixed width larger than the width of jPanel2) and jSrollPane2 snaps to them.

Note that it is very unfortunate that jPanel2 is non-resizable in horizontal direction and has fixed/hard-coded (=non-default) width.
Comment 6 Tomas Pavek 2011-10-12 15:32:04 UTC
Note that non-resizable panel with fixed explicit size must have been set manually, e.g. by resizing it below its minimum size or setting the horizontal size property. To fix it just set the property back to default, the panel will grow to necessary minimum size to accommodate all components.