Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1537] Android: Setting keyboard on TextArea forces single-line

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:27.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect, textarea
ReporterBill Dawson
AssigneeDon Thorp
Created2011-04-15T02:55:23.000+0000
Updated2011-04-17T01:56:27.000+0000

Description

If you explicitly set the keyboardType when creating a TextArea, the control ends up being single-line with no word wrap. Simple test case app.js:


Titanium.UI.setBackgroundColor('#000');

var w = Ti.UI.createWindow({
    fullscreen: true,
    title: 'test'
});

var ta = Titanium.UI.createTextArea({
    value: "Now is the time for all good men to come to the aid of their country.",
    height:100, width:300, top: 0, left: 0,
    keyboardType:Titanium.UI.KEYBOARD_DEFAULT
});
w.add(ta);
w.open();

Take out the keyboardType and you'll get the normal, desired multi-line word-wrapped control.

Comments

  1. Don Thorp 2011-04-15

    (from [db6c9eca8f65e3e36621ff52326c86ca04915766]) [#1537 state:fixed-in-qa] after setting keyboard, make sure to re-disable single line mode for TextArea. http://github.com/appcelerator/titanium_mobile/commit/db6c9eca8f65e3e36621ff52326c86ca04915766"> http://github.com/appcelerator/titanium_mobile/commit/db6c9eca8f65e...

  2. Thomas Huelbert 2011-04-15

    confirmed on simultaor and nexus 1 running 2.2. iOS 4.0.2

JSON Source