Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13855] iOS: TableView SearchBox width isn't adjusted with presence of index on load

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.0, Release 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelsindex, ios, searchbox, tableview
ReporterMatej
AssigneeUnknown
Created2013-05-13T08:31:44.000+0000
Updated2018-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

FileDateSize
issuescreenshot.png2013-05-14T18:44:50.000+000051031

Comments

  1. Daniel Sefton 2013-05-14

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.1 GA and 3.2 CI.

JSON Source