Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25358

iOS: Problem with Ti.UI.SearchBar in SDK 6.2.0+ when not filling the screen

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.2.2, Release 6.2.0, Release 6.2.1
    • Fix Version/s: Release 6.3.0
    • Component/s: iOS
    • Environment:

      Description

      Hi,
      i place a tableview into a view component and attach a searchbar.
      By typing into the searchbar, the filter-result appears always on the very left side
      of the window. Happens not with SDK 6.1.2 and earlier.

      Short Example Code:

      Ti.UI.backgroundColor = 'white';
      var win = Ti.UI.createWindow();
      var view = Titanium.UI.createView({
        top: 30,
        width: 400,
        left: 150,
      });
      var tableData = [{
          title: 'Apples'
        },
        {
          title: 'Bananas'
        },
        {
          title: 'Carrots'
        },
        {
          title: 'Potatoes'
        }
      ];
      var searchBar = Titanium.UI.createSearchBar({
        showCancel: true,
      });
      var table = Ti.UI.createTableView({
        data: tableData,
        search: searchBar,
        width: 300
      });
      view.add(table);
      win.add(view);
      win.open();
      

        Attachments

        1. 6.1.2.png
          6.1.2.png
          31 kB
        2. 6.2.2.png
          6.2.2.png
          33 kB
        3. app.js
          0.4 kB

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              mlandeck Michael Landeck
              Reviewer:
              Hans Knöchel
              Tester:
              Eric Wieber
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-5850
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code