[TIMOB-13855] iOS: TableView SearchBox width isn't adjusted with presence of index on load
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.0, Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | index, ios, searchbox, tableview |
Reporter | Matej |
Assignee | Unknown |
Created | 2013-05-13T08:31:44.000+0000 |
Updated | 2018-02-28T20:04:06.000+0000 |
Description
*Actual behavior*
TableView SearchBox width isn't adjusted with presence of index on load. See attached screenshot.
*Expected behavior*
The search box should be adjusted to the width on load, not just when tapping or scrolling the table view.
*Steps to reproduce*
1. Run the test case
2. See that the width of the search box overlaps the index
3. Tap or scroll table view and see that the search box is now adjusted to the correct width
*index.xml*
<Alloy>
<Window>
<RightNavButton>
<Button systemButton="Ti.UI.iPhone.SystemButton.ADD"/>
</RightNavButton>
<TableView id="table">
<SearchBar></SearchBar>
<TableViewRow title="Docs"></TableViewRow>
<TableViewRow title="Computer"></TableViewRow>
</TableView>
</Window>
</Alloy>
*index.js*
$.table.index = [{
title : "a"
}, {
title : "b"
}, {
title : "c"
}, {
title : "d"
}, {
title : "e"
}, {
title : "f"
}, {
title : "g"
}, {
title : "h"
}, {
title : "i"
}, {
title : "j"
}, {
title : "k"
}, {
title : "l"
}, {
title : "m"
}, {
title : "n"
}, {
title : "o"
}, {
title : "p"
}, {
title : "q"
}, {
title : "r"
}];
$.index.open();
Attachments
File | Date | Size |
---|---|---|
issuescreenshot.png | 2013-05-14T18:44:50.000+0000 | 51031 |
Tested and confirmed on iOS 6 simulator with Ti SDK 3.1 GA and 3.2 CI.