mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Fix autoresize function due to double precision representation of tiny numbers i.e zero
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40235 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9b40beea53
commit
1f01a2e4b0
1 changed files with 3 additions and 3 deletions
|
@ -1976,9 +1976,9 @@ static void autoresize(CGFloat oldContainerSize,
|
|||
BOOL sizeFlexible,
|
||||
BOOL maxMarginFlexible)
|
||||
{
|
||||
const CGFloat change = newContainerSize - oldContainerSize;
|
||||
const CGFloat oldContentSize = *contentSizeInOut;
|
||||
const CGFloat oldContentPosition = *contentPositionInOut;
|
||||
const CGFloat change = floor(newContainerSize) - floor(oldContainerSize);
|
||||
const CGFloat oldContentSize = floor(*contentSizeInOut);
|
||||
const CGFloat oldContentPosition = floor(*contentPositionInOut);
|
||||
CGFloat flexibleSpace = 0.0;
|
||||
|
||||
// See how much flexible space we have to distrube the change over
|
||||
|
|
Loading…
Reference in a new issue