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 205401 - Problem in Moving & Resizing Components in Design mode in TS 71 WindowWizard
Summary: Problem in Moving & Resizing Components in Design mode in TS 71 WindowWizard
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 02:44 UTC by Vibhuti
Modified: 2011-11-23 06:13 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Same Size option greyed out and not available (95.67 KB, image/png)
2011-11-22 02:44 UTC, Vibhuti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vibhuti 2011-11-22 02:44:56 UTC
Created attachment 113394 [details]
Same Size option greyed out and not available

I was testing TS 71 WindowWizard on Netbeans IDE RC 1.
 In the 4th Test Suite "Moving & Resizing Components in Design mode" and Section  "Resizing Components" While Invoking contextual menu in design mode and choosing action Same Size -> Same Width or Same Height. The Same Size option is greyed out and not available. I find this as an important bug and attaching the screenshot too. 

Steps to reproduce the bug :
1. Create a Module project
2.Create a Top Component Window
3.Add various components (at least two)
4.Now for an example Select any two buttons by mouse keeping Ctrl key down.
5. Invoke contextual menu in design and choose action Same Size -> Same Width or Same Height.

The Same Size option is greyed out and not available to be selected.
Comment 1 Antonin Nebuzelsky 2011-11-22 11:46:33 UTC
Reassigning to guibuilder for evaluation, but IMO this is not a bug. I see you have AbsoluteLayout set for the panel.

With 7.1 RC1 everything works as expected (all these actions work for me) with the default Free Design layout. After switching to Absolute Layout all these are disabled.
Comment 2 Jan Stola 2011-11-22 12:50:53 UTC
> Reassigning to guibuilder for evaluation, but IMO this is not a bug.

You are right. It is as designed. Same Size action is enabled for components in a container with Free Design only.
Comment 3 Vibhuti 2011-11-23 05:33:48 UTC
(In reply to comment #2)
> > Reassigning to guibuilder for evaluation, but IMO this is not a bug.
> 
> You are right. It is as designed. Same Size action is enabled for components in
> a container with Free Design only.

Is it a normal behavior that this Same Size option should not be available in Absolute Layout ?? Why should not it be enabled ?
Comment 4 Jan Stola 2011-11-23 06:13:10 UTC
> Is it a normal behavior that this Same Size option should not be available in
> Absolute Layout ?? Why should not it be enabled ?

Same Size action was implemented for Free Design to utilize GroupLayout's linkSize() ability. Absolute layout doesn't have any means to keep the size of several components in sync. In spite of that, I agree that 'Same Size' action can have some meaning even for Absolute Layout (i.e., setting the hardcoded size of the components to the maximum of current sizes of selected components). This functionality hasn't been implemented (yet?) because it is not as important in FreeDesign's case. Feel free to fill the corresponding enhancement.