Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1383] Button Titles

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:02.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsAndroid
Labelsandroid, defect
ReporterTony Guntharp
AssigneeMarshall Culpepper
Created2011-04-15T02:50:58.000+0000
Updated2011-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);

Comments

  1. Marshall Culpepper 2011-04-15

    (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...

JSON Source