1. Evadne Wu
  2. BWToolkit

Commits

eva...@tacitus.local  committed fecf38e

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

  • Participants
  • Parent commits cc05f0d
  • Branches default

Comments (0)

Files changed (1)

File BWStyledTextFieldCell.m

View file
 	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)];