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

Summary: API: AlignWithResizeAction should check the client areas of widgets
Product: platform Reporter: David Kaspar <dkaspar>
Component: GraphAssignee: issues@platform <issues>
Severity: blocker CC: sj-nb
Priority: P3 Keywords: API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 105060    
Attachments: Patch

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.