CPSlider behavior is inverted in vertical mode
Reported by David K. Hess | July 1st, 2010 @ 07:08 AM
In vertical mode, when at maximum value, CPSlider's knob is at the bottom and when at minimum value the knob is at the top. Here's a quick and dirty workaround:
@implementation InvertedSlider : CPSlider
{
}
- (void)mySetValue:(id)aValue
{
[self setObjectValue:[self maxValue] - aValue];
}
- (id)myValue
{
return [self maxValue] - [self objectValue];
}
@end
A little crunched for time at the moment - but will work on a bug fix in the next week or two.
Comments and changes to this ticket
-
David K. Hess July 6th, 2010 @ 07:18 PM
Bug fix here:
http://github.com/davidkhess/cappuccino/commit/3de6c508c2865558ea75...
Pull request sent.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.