Ignore the frame origin when computing the bounds.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25293 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-06-27 12:59:39 +00:00
parent d8d13297cb
commit 1a3c5ae5fc
2 changed files with 35 additions and 27 deletions

View file

@ -1,3 +1,10 @@
2007-06-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSView.m (-setBoundsRotation:): Ignore the frame origin
when computing the bounds.
* Source/NSView.m (-drawPageBorderWithSize:): Remove test code
accidentally introduced in last change.
2007-06-26 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSView.h: Add new MacOSX methods.

View file

@ -1332,7 +1332,9 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if (angle != oldAngle)
{
NSAffineTransform *matrix;
NSRect frame = _frame;
frame.origin = NSMakePoint(0, 0);
if (_coordinates_valid)
{
(*invalidateImp)(self, invalidateSel);
@ -1342,7 +1344,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
// Adjust bounds
matrix = [_boundsMatrix copy];
[matrix invert];
[matrix boundingRectFor: _frame result: &_bounds];
[matrix boundingRectFor: frame result: &_bounds];
RELEASE(matrix);
if (_post_bounds_changes)
@ -3873,7 +3875,6 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
- (void) drawPageBorderWithSize: (NSSize)borderSize
{
NSFrameRect(NSMakeRect(0, 0, borderSize.width, borderSize.height));
}
- (void) drawSheetBorderWithSize: (NSSize)borderSize