aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFavoriteTextFieldCell.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPFavoriteTextFieldCell.m')
-rw-r--r--Source/SPFavoriteTextFieldCell.m11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/SPFavoriteTextFieldCell.m b/Source/SPFavoriteTextFieldCell.m
index 6011af7f..af65d28e 100644
--- a/Source/SPFavoriteTextFieldCell.m
+++ b/Source/SPFavoriteTextFieldCell.m
@@ -142,7 +142,10 @@
float maxWidth = cellFrame.size.width;
float mainStringWidth = [mainString size].width;
float subStringWidth = [subString size].width;
-
+
+ // Set a right-padding
+ maxWidth -= 10;
+
if (maxWidth < mainStringWidth) {
for (i = 0; i <= [mainString length]; i++) {
if ([[mainString attributedSubstringFromRange:NSMakeRange(0, i)] size].width >= maxWidth) {
@@ -163,6 +166,12 @@
[subString drawInRect:subFrame];
}
+// Suppress built-in tooltips
+- (NSRect)expansionFrameWithFrame:(NSRect)cellFrame inView:(NSView *)view
+{
+ return NSMakeRect(0,0,0,0);
+}
+
// -------------------------------------------------------------------------------
// invertFontColors
//