mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 09:40:50 +00:00
try to avoid infinite recursion by being less demanding about exact equality
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37809 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0d02e513d8
commit
a2c9a6f583
1 changed files with 3 additions and 2 deletions
|
@ -517,8 +517,8 @@ static NSString *placeholderItem = nil;
|
|||
return;
|
||||
|
||||
CGFloat width = [self bounds].size.width;
|
||||
|
||||
if (ABS(width - _tileWidth) <= 1)
|
||||
NSLog(@"tile: width = %g, previous width = %g", width, _tileWidth);
|
||||
if (ABS(width - _tileWidth) <= 2)
|
||||
return;
|
||||
|
||||
NSSize itemSize = NSMakeSize(_minItemSize.width, _minItemSize.height);
|
||||
|
@ -587,6 +587,7 @@ static NSString *placeholderItem = nil;
|
|||
NSSize currentSize = [self frame].size;
|
||||
if (!NSEqualSizes(currentSize, aSize))
|
||||
{
|
||||
NSLog(@"resizeSubviews: new size = %g x %g, currentSize = %g x %g", aSize.width, aSize.height, currentSize.width, currentSize.height);
|
||||
[self tile];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue