Description
With the below code, the second TextField does not stretch the width of the view as expected, commenting left or right on the first TextField will make it stretch, this occurs for all UI elements
var _window = Ti.UI.createWindow();
var txtUsername = Ti.UI.createTextField({
top: 50,
left: 10,
right: 10,
hintText: 'Username'
});
var txtPassword = Ti.UI.createTextField({
top: 150,
left: 10,
right: 10,
hintText: 'Password'
});
var view = Ti.UI.createView({
height: 480,
width: 320,
borderColor: 'green',
borderWidth: 5,
backgroundColor: 'red'
});
view.add(txtPassword)
view.add(txtUsername);
_window.add(view);
_window.open();
Steps to reproduce
Add the above to an existing app.js
Build for a windows target
Actual
Second TextField does not stretch the width of the view
Expected
Second TextField should stretch the width of the view
https://github.com/appcelerator/titanium_mobile_windows/pull/1025
6_2_X backport merged in https://github.com/appcelerator/titanium_mobile_windows/pull/1048 Awaiting the build before closing
Verified in 6.2.0.v20170811022027