mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:30:39 +00:00
Coordinate system fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3691 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d181ea9940
commit
dc1695e8f8
5 changed files with 43 additions and 63 deletions
|
@ -271,9 +271,6 @@ static BOOL preCalcValues = NO;
|
|||
|
||||
- (void) setFloatValue: (float)aFloat
|
||||
{
|
||||
if (aFloat == _floatValue)
|
||||
return;
|
||||
|
||||
if (aFloat < 0)
|
||||
_floatValue = 0;
|
||||
else if (aFloat > 1)
|
||||
|
@ -791,8 +788,6 @@ static BOOL preCalcValues = NO;
|
|||
// calc the slot Height
|
||||
slotHeight = height - (arrowsPosition == NSScrollerArrowsNone ?
|
||||
0 : 2 * (buttonsWidth + buttonsDistance));
|
||||
if (_isHorizontal)
|
||||
slotHeight -= 2;
|
||||
knobHeight = _knobProportion * slotHeight;
|
||||
if (knobHeight < buttonsWidth)
|
||||
knobHeight = buttonsWidth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue