Minor drawing fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5644 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-12-31 17:34:48 +00:00
parent 0cabb2b5d3
commit 5ae01adca9
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Dec 31 17:28:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSSlider.m: ([drawRect:]) minor drawing fix to ensure that
the slider knob is drawn in the correct place.
Fri Dec 31 10:49:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSBundleAdditions.m: When decoding nib container, check for a

View file

@ -163,7 +163,12 @@ static Class cellClass;
- (void) drawRect: (NSRect)rect
{
[_cell drawWithFrame: rect inView: self];
/*
* Give the cell our bounds to draw in, not the rect - if we give it a rect
* that represents an exposed part of this view, it will try to draw the
* slider knob positioned in that rectangle ... which is wrong.
*/
[_cell drawWithFrame: bounds inView: self];
}
- (float)_floatValueForMousePoint: (NSPoint)point knobRect: (NSRect)knobRect