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 88820 - it's possible make element size values negative using shortcuts
Summary: it's possible make element size values negative using shortcuts
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Craig Conover
URL:
Keywords: REGRESSION
Depends on:
Blocks: 83703
  Show dependency tree
 
Reported: 2006-11-07 13:53 UTC by Andrew Korostelev
Modified: 2006-11-09 15:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Korostelev 2006-11-07 13:53:38 UTC
If user resizes diagram element with shortcuts, it is possible to reduce height
or width even more then to zero size.
Element becomes invisible.

steps:
- create e.g. class diagram
- put class element on diagram
- select class element
- resize it using shortcut Alt+Shift+Left.
after width is reduced to zero, it is still possible to reduce it's size...
Comment 1 Andrew Korostelev 2006-11-07 13:54:30 UTC
this issue is a regression. appeared after fix of issue 83703
Comment 2 Craig Conover 2006-11-07 20:59:35 UTC
New validation routine prevents negative values and OK button is disabled when
values are invalid.
Comment 3 Andrew Korostelev 2006-11-08 10:35:30 UTC
As it is said in summary, this issue is about results of using shortcuts.
Not about Set Dimensions dialog.
Comment 4 Craig Conover 2006-11-09 07:22:42 UTC
Hey, that's kinda cool ;) I see what you mean now.
Fixed. I am stopping at a width of 25 units so that it doesn't completely disappear.

Also changed Set Dimensions dialog to validate units are greater or equal than
25 to be consistent.

If this minimum should be changed, just let me know, but this seems like a good
size for a minimum at 100% zoom.
Comment 5 Andrew Korostelev 2006-11-09 15:11:49 UTC
verified in ide-coco-061108_9
it is now not possible to 'revert' element to make it not visible, 
but fix has some problems that will be filed as separate issues
Comment 6 Andrew Korostelev 2006-11-09 15:39:52 UTC
see also:
89035 - set dimensions dialog min size is larger that default dimension of some
elements
89037 - element minimal size depends on resizing way
89038 - element minimal size may be 6 to 10 if resized with keyboard shortcut
Comment 7 Andrew Korostelev 2006-11-09 15:53:55 UTC
related ENHANCEMENT:
issue 89042 - step of element resizing by shortcut should depend on how key is
pressed