Description:
This is a *regression* between 5.0.2.GA - 5.1.0. The left button within a text field is no longer centered, but still responsive. The right button does not become visible upon focus of the text field.
Steps to reproduce:
1.
appc ti sdk select 5.0.2.GA
2. Create a classic project.
3. Use following example code in app.js:
var win = Ti.UI.createWindow({
backgroundcolor: 'red'
});
var leftButton = Titanium.UI.createButton({
style:Titanium.UI.iPhone.SystemButton.DISCLOSURE
});
var rightButton = Titanium.UI.createButton({
style:Titanium.UI.iPhone.SystemButton.INFO_DARK
});
leftButton.addEventListener('click',function()
{
Titanium.UI.createAlertDialog({
title:'Text Fields',
message:'You clicked the left button'
}).show();
});
rightButton.addEventListener('click',function()
{
Titanium.UI.createAlertDialog({
title:'Text Fields',
message:'You clicked the right button'
}).show();
});
var tf1 = Titanium.UI.createTextField({
color:'#336699',
height:35,
top:100,
left:10,
width:250,
borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
leftButton:leftButton,
rightButton:rightButton,
leftButtonMode:Titanium.UI.INPUT_BUTTONMODE_ALWAYS,
rightButtonMode:Titanium.UI.INPUT_BUTTONMODE_ONFOCUS
});
win.add(tf1);
win.open();
4. No issue with buttons in a text field.
5.
appc ti sdk select
5.1.X SDK.
6. run the same example code.
7. Issue with buttons in a text field occurs.
Result:
Buttons in a text field issue should occur with 5.1.X SDK builds.
Expected Result:
Left button should be centered and right button should become visible upon text field focus.
Regression Issue
Marking as
Invalid
since it is a KitchenSink issue. As soon as we set a width and height as stated in the docs, everything works well.Closing ticket as invalid.