| 279 | | cellFrame.origin.x += [self leftPadding] + [self indentation]; |
|---|
| 280 | | cellFrame.size.width -= [self rightPadding] + [self leftPadding] + [self indentation]; |
|---|
| 281 | | |
|---|
| | 279 | cellFrame.origin.x += [self leftPadding]; |
|---|
| | 280 | cellFrame.size.width -= [self rightPadding] + [self leftPadding]; |
|---|
| | 281 | |
|---|
| | 282 | switch ([self textAlignment]) { |
|---|
| | 283 | case NSRightTextAlignment: |
|---|
| | 284 | //Right alignment indents on the right |
|---|
| | 285 | cellFrame.size.width -= [self indentation]; |
|---|
| | 286 | break; |
|---|
| | 287 | default: |
|---|
| | 288 | //All other alignments indent on the left |
|---|
| | 289 | cellFrame.origin.x += [self indentation]; |
|---|
| | 290 | cellFrame.size.width -= [self indentation]; |
|---|
| | 291 | break; |
|---|
| | 292 | } |
|---|