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 105285 - API: AlignWithResizeAction should check the client areas of widgets
Summary: API: AlignWithResizeAction should check the client areas of widgets
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@platform
Depends on:
Blocks: 105060
  Show dependency tree
Reported: 2007-05-31 15:52 UTC by David Kaspar
Modified: 2007-08-10 09:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Patch (26.53 KB, patch)
2007-07-26 13:42 UTC, David Kaspar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kaspar 2007-05-31 15:52:57 UTC
The AlignWithResizeAction is aligning a widget to other areas. For that it is
using full area of the widget - including the border of the widget. In most
cases the border itself is just a resize-handler for users to be to resize
widget. Therefore there should be a possibility to align with client-areas
(widget boundary without border) of widgets.
Comment 1 David Kaspar 2007-07-26 13:42:06 UTC
Created attachment 45771 [details]
Comment 2 David Kaspar 2007-07-26 13:44:17 UTC
A patch has been attached. The patch introduces 4 new methods in ActionFactory for creating align-with move/resize
actions with additional "outerBounds" boolean parameter which specifies whether outer or inner bounds (means: bounds or
client-area) is going to be checked.
Asking for fast API review.
Comment 3 David Kaspar 2007-08-10 09:45:53 UTC
Fixed in main trunk.