Commits

Brandon Walkin  committed 98a1889

Transparent scroller bug fix - don't draw the knob if the documentView is smaller than the scrollView (thanks Mirko Viviani)

  • Participants
  • Parent commits 1fb7b8c

Comments (0)

Files changed (1)

File BWTransparentScroller.m

 	if (isVertical && ([self bounds].size.height - verticalPaddingTop - verticalPaddingBottom + 1) > minKnobHeight)
 	{
 		[self drawKnobSlot];
-		[self drawKnob];
+		
+		if ([self knobProportion] > 0.0)	
+			[self drawKnob];
 	}
 	else if (!isVertical && ([self bounds].size.width - horizontalPaddingLeft - horizontalPaddingRight + 1) > minKnobWidth)
 	{
 		[self drawKnobSlot];
-		[self drawKnob];
+
+		if ([self knobProportion] > 0.0)	
+			[self drawKnob];
 	}
 }