Revision: 5302
http://skim-app.svn.sourceforge.net/skim-app/?rev=5302&view=rev
Author: hofman
Date: 2009-04-03 14:16:38 +0000 (Fri, 03 Apr 2009)
Log Message:
-----------
Make whole text rect of textfield cells with icons editable when there's no
text content, as NSTextFieldCell does
Modified Paths:
--------------
trunk/SKTextWithIconCell.m
Modified: trunk/SKTextWithIconCell.m
===================================================================
--- trunk/SKTextWithIconCell.m 2009-04-03 14:10:17 UTC (rev 5301)
+++ trunk/SKTextWithIconCell.m 2009-04-03 14:16:38 UTC (rev 5302)
@@ -152,7 +152,7 @@
} else {
NSRect textRect = [self textRectForBounds:cellFrame];
float textWidth = [super cellSize].width;
- if (textWidth < NSWidth(textRect))
+ if (textWidth < NSWidth(textRect) && [[self stringValue] length])
textRect.size.width = textWidth;
if (NSMouseInRect(mouseLoc, textRect, [controlView isFlipped]))
hit = NSCellHitContentArea | NSCellHitEditableTextArea;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit