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 112509 - Align context menu does not work on Comment element
Summary: Align context menu does not work on Comment element
Status: VERIFIED WORKSFORME
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Craig Conover
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-09 21:38 UTC by Joanne Lau
Modified: 2007-08-24 00:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot attached (44.32 KB, image/gif)
2007-08-09 22:43 UTC, Joanne Lau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joanne Lau 2007-08-09 21:38:40 UTC
NB: 200708080237

Steps to reproduce:
1) Drop a comment element to the diagram editor
2) Type "Test" 
3) Right click to the comment element -> Align -> Bottom for example,
   Notice that nothing happens. 
4) Try other menu items such as: left, right ...., no alignment adjusted
Comment 1 Joanne Lau 2007-08-09 22:42:52 UTC
As I see there is an existing open bug #98444 in which the align menu should be disabled if there is only
one single element selected.

In the following scenario which 3 elements are selected:

1) Drop 3 Comment elements to the diagram editor
2) Select all 3 them at once (see attached screenshot) and right click -> Align
   Trying Align -> left, right, horizontal center 
  
   No alignment adjusted

3) If there aren't any alignment, it would be nice to see the menu items disabled
Comment 2 Joanne Lau 2007-08-09 22:43:32 UTC
Created attachment 46436 [details]
screenshot attached
Comment 3 Joanne Lau 2007-08-10 00:00:09 UTC
I also notice that vertical center menu and horizontal center menu are swapped, e.g If selecting vertical center menu,
I'm getting the horizontal center alignment.
Comment 4 Craig Conover 2007-08-16 22:34:12 UTC
The original comment appears to be talking about text alignment in the Comment node.
The second comment is addressing the intended function of aligning nodes on the canvas. This is working for me with
Comment nodes and Comment nodes with other node types. Please provide more specific details (OS and such). I am on WinXP
and used a Class Diagram. All was fine.

I opened a new issue to address the swapped horizontal/vertical center actions: Issue 113046
Comment 5 Peter Lam 2007-08-24 00:15:10 UTC
original issue was verified in build 070823 b2736 ok.