aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 5b7f4a4b..393e0e94 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -483,6 +483,14 @@
} else {
dataCell = [[[SPTextAndLinkCell alloc] initTextCell:@""] autorelease];
}
+
+ // Set the column to right-aligned for numeric data types
+ if ([[columnDefinition objectForKey:@"typegrouping"] isEqualToString:@"integer"]
+ || [[columnDefinition objectForKey:@"typegrouping"] isEqualToString:@"float"])
+ {
+ [dataCell setAlignment:NSRightTextAlignment];
+ }
+
[dataCell setEditable:YES];
// Set the line break mode and an NSFormatter subclass which truncates long strings for display