Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14967] iOS: Setting horizontalWrap : true on a Button has no effect

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.2, Release 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelsparity, reprod
ReporterPurvi Patel
AssigneeUnknown
Created2013-08-26T17:37:20.000+0000
Updated2018-02-28T20:03:57.000+0000

Description

*Actual Result* Text doesn't wrap. *Expected Result* Text should wrap and go to next line. *Test case*
var win = Ti.UI.createWindow({
	backgroundColor : "#FFF"
});

var button = Titanium.UI.createButton({
	title : 'Testing a string longer than the width of the button',
	top : 10,
	width : 100,
	height : 300,
	horizontalWrap : true
});

win.add(button);
win.open();

Attachments

FileDateSize
.log2013-08-26T17:37:23.000+000027054
diagnostic6482680694158719045.log2013-08-26T17:37:28.000+000010306

Comments

  1. Daniel Sefton 2013-08-27

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.1.2 GA and 3.2 CI. Works on Android.
  2. Shameer Jan 2014-08-20

    Issue reproduces on both SDK version 3.2.0 and 3.4.0 (Unreleased) Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.4.0.GA Titanium SDK version 3.2.0.GA iOS SDK: 7.1 iOS iPhone: 7.1
  3. Lee Morris 2017-06-20

    I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source