Creating a button in Titanium it gets a 100% width from the system if width is not defined or
set to auto:
var button = Titanium.UI.createButton({
title: 'Some Title',
width: 'auto'
});
I want to have the button have the exact width of its content without calculating the contents width myself or setting it manually.
In the documentation I can not find any options to achieve that.
Is there an option to have the button width match its contents?
Answering my own question to allow me to close it:
Currently a default button can not be sized dynamically to its content in Titanium.