[TIMOB-2052] iOS: titleControl snaps to far left initially
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2012-07-20T14:12:04.000+0000 |
| Affected Version/s | Release 1.6.0 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | Jeroen K. |
| Assignee | Neeraj Gupta |
| Created | 2011-04-15T03:09:08.000+0000 |
| Updated | 2017-03-09T22:47:03.000+0000 |
Description
Quoting Bart Lewis from this http://developer.appcelerator.com/question/55041/titlecontrol-snaps-to-far-left-initially" title="Q&A topic">Q&A Topic
In a window with the following code, the titleControl should be in the middle of the title bar.
var refineButton = Ti.UI.createButton({title:'Refine', height:30, width:60}); Ti.UI.currentWindow.titleControl = refineButton;When the window is first opened (it is a child window within a tabbed group via Ti.UI.currentTab.open), the refineButton shown > above snaps to the left as the back button animates in. After the animation is complete, the titleControl element snaps to the > center where it should be.
Does not reproduce with release 2.1.0.
Closing ticket as the issue cannot be reproduced.