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 61478

Summary: resizing gap is too large
Product: guibuilder Reporter: _ gsporar <gsporar>
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: sample output
sample output

Description _ gsporar 2005-07-27 19:52:13 UTC
I've built a simple Find dialog (see endResult.png).

When the user resizes the dialog by grabbing the right edge and dragging it, the
text field resizes but a gap that is larger than what it should be is displayed
between the text field and the Find Next button (see resize.png).

In the form editor after I changed the text field to be horizontally resizable
(by clicking on the horizontal spring in the floating alignment controller) I
resized the overall dialog by grabbing the right edge and moving it to the left
until it snapped to the correct size (with an appropriate gap between the text
field and the Find Next button).

Interestingly, I can avoid this problem by making just one change during the
laying out of the components.  Notice that the "Match whole word only" checkbox
is aligned with the baseline of the text on the "Cancel" button.  If I instead
align the "Match whole word only" checkbox with the top of the Cancel button,
this problem does not occur: if the user resizes the dialog the correct gap is
shown between the text field and the Find Next button.
Comment 1 _ gsporar 2005-07-27 19:52:43 UTC
Created attachment 23330 [details]
sample output
Comment 2 _ gsporar 2005-07-27 19:53:14 UTC
Created attachment 23331 [details]
sample output
Comment 3 Tomas Pavek 2005-12-09 15:40:33 UTC
I beleive this works fine already (the resizing gaps are eliminated).

Not knowing particular change that fixed it I close as worksforme.