mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Fix duplicate _size and use the _frame in the attributes class
This commit is contained in:
parent
95fa4e0368
commit
fe2a988111
2 changed files with 4 additions and 5 deletions
|
@ -62,7 +62,6 @@ APPKIT_EXPORT_CLASS
|
|||
@interface NSCollectionViewLayoutAttributes : NSObject <NSCopying>
|
||||
{
|
||||
NSRect _frame;
|
||||
NSSize _size;
|
||||
CGFloat _alpha;
|
||||
NSInteger _zIndex;
|
||||
BOOL _hidden;
|
||||
|
|
|
@ -76,12 +76,12 @@
|
|||
|
||||
- (NSSize) size
|
||||
{
|
||||
return _size;
|
||||
return _frame.size;
|
||||
}
|
||||
|
||||
- (void) setSize: (NSSize)size
|
||||
{
|
||||
_size = size;
|
||||
_frame.size = size;
|
||||
}
|
||||
|
||||
- (CGFloat) alpha
|
||||
|
@ -151,8 +151,8 @@
|
|||
|
||||
- (NSString *) description
|
||||
{
|
||||
return [NSString stringWithFormat: @"%@ - f = %@, s = %@, alpha = %f, z = %ld",
|
||||
[super description], NSStringFromRect(_frame), NSStringFromSize(_size),
|
||||
return [NSString stringWithFormat: @"%@ - f = %@, alpha = %f, z = %ld",
|
||||
[super description], NSStringFromRect(_frame),
|
||||
_alpha, _zIndex];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue