mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 15:41:55 +00:00
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:
parent
d8d13297cb
commit
1a3c5ae5fc
2 changed files with 35 additions and 27 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue