Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Low
-
Resolution: Fixed
-
Affects Version/s: Release 3.2.1
-
Fix Version/s: Release 7.5.0
-
Component/s: iOS
-
Labels:
-
Environment:
Titanium Studio 3.2.1.201402041146, Ti SDK 3.2.0+, iOS6 & 7 (tested on both device and simulator)
-
Story Points:5
-
Sprint:2018 Sprint 06 SDK, 2018 Sprint 07 SDK, 2018 Sprint 08 SDK, 2018 Sprint 09 SDK, 2018 Sprint 10 SDK, 2018 Sprint 11 SDK, 2018 Sprint 12 SDK, 2018 Sprint 13 SDK
Description
If setting either the width or left and right values of a label the text will be truncated when you change the fontWeight of the label. If width or left and right are omitted it resizes the label correctly after changing the fontWeight.
The label container is "showing" the right size, but text gets truncated anyway.
Code to reproduce |
var testLbl = Ti.UI.createLabel({
|
text: 'Some semi-long text',
|
font: {
|
fontWeight: 'normal',
|
fontSize: 13
|
},
|
backgroundColor:'#f00',
|
color: '#000',
|
textAlign: 'center',
|
top: 60,
|
// left: 10,
|
// right: 10,
|
width:'90%'
|
});
|
setTimeout(function(e){
|
testLbl.font = {
|
fontWeight: 'bold',
|
fontSize: 13
|
};
|
//text gets truncated
|
}, 1000);
|
Attachments
Issue Links
- blocks
-
AC-5407 Label on iOS ellipsized when changing font
- Resolved