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 124765 - Resizing problem when out of bounds
Summary: Resizing problem when out of bounds
Status: RESOLVED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Design Center (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-06 03:11 UTC by feldari
Modified: 2009-01-26 21:18 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 feldari 2008-01-06 03:11:29 UTC
I observed this problem during working with the UML drawing tool, but I think this is a problem of the Visual Library
itself.
When resizing, for example by dragging the bottom right control point and then dragging over the left top point, the
bounds start to move. This is the first wrong behavior as resizing should not move the bounds as a whole to another
position on the screen.
And furthermore, when you release the mouse button, the widget will be at at the original position, but so little, that
it is not possible to catch a control point to make it big again.
There are even some other problems, when the bounds were moved to another position in the described way. For example
when you drag the mouse pointer back to the right bottom screen in my example, the bounds take up a lot of space. When
then releasing the mouse button, the widget is back at it's orginal place (even when the bounds are somewhere else) and
 a bit resized (you never know for sure how big or small it will get).

I suggest: When dragging over the left top edge in my example (this must logically be implemented for every edge resp.
side) the bounds should not move, but just take the minimum area. And when then releasing the mouse button, the widget
should be resized, but not the absolute minimum. There must be a minimum size constraint.
Comment 1 David Kaspar 2008-01-07 10:12:23 UTC
Actually I am not sure whether it is an issue in Visual Library.
I have tried test.resize.ResizeTest example and it does not allow to go to negative width/height. By default the
Resizing is activate by dragging a border of a Widget. Anyway a developer has a possibility to pre-process or limit the
resizing by supplying ResizeStrategy argument to createResizeAction factory method, so it should possible to limit the
minimum boundary.

Please, could you create a test-case to reproduce your issue?
For now, adding INCOMPLETE keyword.
Comment 2 feldari 2008-01-07 20:17:56 UTC
Thanks for the answer. Then I move the bug to the "uml" component, cause it's obviously is one. Let's see, what the UML
people say. When I have a bit time again I also investigate it further.
Comment 3 Sergey Petrov 2008-09-16 21:20:37 UTC
it's a valid uml issue, mostly resolved in 6.5
Comment 4 Sergey Petrov 2009-01-26 18:40:21 UTC
in my opinion it's fixed, may be except some object may have relativey small minimum size and may be adusted, but bouds
don't move on resizing any more.