Project: titanium
Issue TIMOB-23385: iOS: Vertical View of width Ti.UI.SIZE does not scale to fit contents correctly
According to http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.View "_Titanium.UI.SIZE specifies that the view should adjust this size to fit its contents, such as a label's text or a view's children._" However, this test code shows the view {{width}} scaling to fit its parent. {code} var win = Ti.UI.createWindow({backgroundColor:'green'}); var view = Ti.UI.createView({ backgroundColor: 'yellow', layout: "vertical", top: 10, left: 10, height: Ti.UI.SIZE, width: Ti.UI.SIZE, }); var label = Ti.UI.createLabel({ left: 10, right: 10, color: "blue", text: "this is test text" }); view.add(label); win.add(view); win.open(); {code}
Story points: 5