Fixed slow drift of the divider of a splitview when doing a sequence of resizings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26424 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2008-04-01 23:14:17 +00:00
parent 82d086b439
commit 4f48690360
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2008-04-02 Nicola Pero <nicola.pero@meta-innovation.com>
* Source/NSSplitView.m ([-adjustSubviews]): Fixed the slow drift
of the divider when the window is resized multiple times, due to a
historical 'floor' call, now pointless.
2008-04-01 Nicola Pero <nicola.pero@meta-innovation.com>
Implemented -setAutosaveName: for NSSplitView.

View file

@ -32,7 +32,6 @@
Boston, MA 02110-1301, USA.
*/
#include <math.h>
#include <Foundation/NSArray.h>
#include <Foundation/NSCoder.h>
#include <Foundation/NSDecimalNumber.h>
@ -793,7 +792,7 @@ static NSNotificationCenter *nc = nil;
if (i < (count - 1))
{
newHeight = floor(proportions[i] * newTotal);
newHeight = proportions[i] * newTotal;
}
else
{
@ -819,7 +818,7 @@ static NSNotificationCenter *nc = nil;
if (i < (count - 1))
{
newWidth = floor(proportions[i] * newTotal);
newWidth = proportions[i] * newTotal;
}
else
{