[TIMOB-1383] Button Titles
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:56:02.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.4.0 |
| Components | Android |
| Labels | android, defect |
| Reporter | Tony Guntharp |
| Assignee | Marshall Culpepper |
| Created | 2011-04-15T02:50:58.000+0000 |
| Updated | 2011-04-17T01:56:02.000+0000 |
Description
Button titles are not auto-centering if you set the left and right properties like so:
var Test_Button = Titanium.UI.createButton({
title: 'Test Button',
top:10,
left:10,
right:10,
height:40,
});
win.add(Test_Button);
(from [f8f9eee49a1b9d3599d7dbb346880f97f54b35f8]) re-measure children if we force-override the setting using the EXACT MeasureSpec so controls with sub-layouts correctly grow to the right measured size [#1383 state:resolved] http://github.com/appcelerator/titanium_mobile/commit/f8f9eee49a1b9d3599d7dbb346880f97f54b35f8"> http://github.com/appcelerator/titanium_mobile/commit/f8f9eee49a1b9...