Anonymous avatar Anonymous committed cc05f0d

Fixed erroneous fix

Comments (0)

Files changed (1)

BWStyledTextFieldCell.m

 						   
 	);
 	
-	NSLog(@"Bound size: %f, %f", [self controlView].frame.size.width, [self controlView].frame.size.height);
-	
 	NSImage *image = [[[NSImage alloc] initWithSize:boundSizeWithFullWidth] autorelease];
 	
 	NSGradient *gradient = [[[NSGradient alloc] initWithStartingColor:self.startingColor endingColor:self.endingColor] autorelease];
 	
 	[image lockFocus];
-	[gradient drawInRect:NSMakeRect(0,0,boundSizeWithFullWidth.width,boundSizeWithFullWidth.height) angle:270];
+
+	[gradient drawInRect: NSMakeRect (
+
+		0,
+		0,
+		boundSizeWithFullWidth.width,
+		boundSizeWithFullWidth.height
+		
+	) angle:270];
+		
 	[image unlockFocus];
 	
 	NSColor *color = [NSColor colorWithPatternImage:image];
 
 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
 {
+
 	[[NSGraphicsContext currentContext] saveGraphicsState];
 	
 	float textHeight = [[self font] ascender] - [[self font] descender];
 	
 	float deltaHeight = cellFrame.size.height - textHeight;
-	float halfDeltaHeight = deltaHeight / 2;
+
+	float halfDeltaHeight = 0;
+//	float halfDeltaHeight = deltaHeight / 2;
 	
 	float yOrigin = [[controlView superview] convertRect:[controlView frame] toView:nil].origin.y;
-	[[NSGraphicsContext currentContext] setPatternPhase:NSMakePoint(0, yOrigin + halfDeltaHeight)];
+
+	[[NSGraphicsContext currentContext] setPatternPhase:NSMakePoint(0, yOrigin + halfDeltaHeight)];	
 	
 	[super drawInteriorWithFrame:cellFrame inView:controlView];
 	
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.