Commits

Anonymous committed fecf38e

StyledTextField: convertRect:rect toView:nil actually conforms to the window which is often undesired; fixed

Comments (0)

Files changed (1)

BWStyledTextFieldCell.m

 	float halfDeltaHeight = 0;
 //	float halfDeltaHeight = deltaHeight / 2;
 	
-	float yOrigin = [[controlView superview] convertRect:[controlView frame] toView:nil].origin.y;
+	float yOrigin = [[controlView superview] convertRect:[controlView frame] toView:[controlView superview]].origin.y;
 
 	[[NSGraphicsContext currentContext] setPatternPhase:NSMakePoint(0, yOrigin + halfDeltaHeight)];