CPSplitView fix for more than one splitter

This commit is contained in:
Tom Robinson
2008-12-15 21:18:36 -08:00
parent 5eb7be054e
commit d73450d8fa
+5 -3
View File
@@ -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