Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

CPSlider behavior is inverted in vertical mode

#293

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.

Reported by David K. Hess · July 1st, 2010 @ 07:08 AM

State: new
Milestone: none
Assigned to: nobody

Activity

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.