Skip to content

Commit

Permalink
CPSplitView fix for more than one splitter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Robinson committed Dec 16, 2008
1 parent 5eb7be0 commit d73450d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions AppKit/CPSplitView.j
Expand Up @@ -190,9 +190,11 @@ var CPSplitViewHorizontalImage = nil,
{
var count = [_subviews count] - 1;

if (count > 0)
while (count--)
[self drawDividerInRect:[self rectOfDividerAtIndex:count]];
while ((count--) > 0)
{
_drawingDivider = count;
[self drawDividerInRect:[self rectOfDividerAtIndex:count]];
}
}

- (void)drawDividerInRect:(CGRect)aRect
Expand Down

0 comments on commit d73450d

Please sign in to comment.