mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
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:
parent
82d086b439
commit
4f48690360
2 changed files with 8 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue