[AC-2416] Titanium.UI.TextField changes size after hiding and showing
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-04-02T01:17:59.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Yaroslav Pidstryhach |
Assignee | Mauro Parra-Miranda |
Created | 2012-11-26T11:56:43.000+0000 |
Updated | 2016-03-08T07:41:27.000+0000 |
Description
Reproduction steps:
1. Create a tabbed application with two tabs.
2. First tab: Add a Titanium.UI.TextField, center it, and maximize its width.
3. First tab: Add a button that toggles the visibility of the text field.
4. Second tab: leave empty.
5. Click the visibility toggling button.
6. Click the visibility toggling button again.
Expected behavior: After clicking the button, the text field's width should stay the same.
Actual behavior: after step 6, the width of the text field changes.
Notes: After switching to the 2nd tab and back, the text field reverts to the correct width.
See attached archive for the source code.
Attachments
Please provide a one file sample app. Something that can be copied and pasted into app.js