Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
[TIMOB-23501] iOS: fix IF
  • Loading branch information
m1ga authored and AngelkPetkov committed Jun 29, 2016
1 parent 6596282 commit 51350be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions apidoc/Titanium/UI/UI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,15 @@ properties:
platforms: [android]
since: "4.1.0"

- name: TEXT_ELLIPSIZE_TRUNCATE_NONE
summary: Disables ellipsizing of the label. The text will be cut off if it is too long.
description: |
One of the group of constants for the <Titanium.UI.Label.ellipsize> property.
type: Number
permission: read-only
platforms: [android]
since: "6.0.0"

- name: EXTEND_EDGE_TOP
summary: Specifies that the top edge of the window can extend.
description: |
Expand Down
4 changes: 2 additions & 2 deletions iphone/Classes/TiUILabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ -(void)setColor_:(id)color
-(void)setEllipsize_:(id)value
{
ENSURE_SINGLE_ARG(value, NSNumber);
if ([TiUtils intValue:value] == 1) {
[[self label] setLineBreakMode:NSLineBreakByCharWrapping];
if ([[TiUtils stringValue:value] isEqualToString:@"true"]) {
[[self label] setLineBreakMode:NSLineBreakByTruncatingTail];
return;
}
[[self label] setLineBreakMode:[TiUtils intValue:value]];
Expand Down

0 comments on commit 51350be

Please sign in to comment.