Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9212] MobileWeb: Label - wordWrap is not working

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-06-05T14:23:16.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-12 MW
ComponentsMobileWeb
Labelsregression
ReporterJon Alter
AssigneeBryan Hughes
Created2012-05-23T14:21:56.000+0000
Updated2012-06-26T16:59:16.000+0000

Description

WordWrap was working in 2.0.1.GA2 but is not working in TiSDK 2.1.0.v20120522144410

Steps to reproduce:

Step 1: run the code below Step 2: notice that the text is not wrapping
var win  = Ti.UI.createWindow({
	backgroundColor: 'green'
});
win.open();

var label = Ti.UI.createLabel({
	text: "One Two Three Four Five",
	width: 100,
	height: 50,
	font: {fontSize: 16},
	wordWrap: true,
	backgroundColor: 'red'
});
win.add(label);

Comments

  1. Chris Barber 2012-06-04

    There are a couple other related issues including labels not wrapping properly in AlertDialogs (TIMOB-9327) and the last line of really long labels getting cut off: http://developer.appcelerator.com/question/137694/mobileweb-tiuilabel-truncating-some-words-if-text-too-long
  2. Bryan Hughes 2012-06-05

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2328

JSON Source