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

iOS : Search bar in absolute-positioned ListView extends when focused


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


      There is a position problem in SDK 6.2.X that seems to be fixed in RC 6.3.0.v20171017063048 but another problem is still there (I explain it at the end - TIMOB-25358).
      No problem in SDK 6.1.2

      Problem :
      When a Search Bar in a ListView is focused, its width extends (it seems to take the Window's witdh). It keeps it's new width after that.
      See the 3 screenshots attached

      Example :

      var data = [ { title : 'Bashful'}, { title : 'Doc'}, { title : 'Dopey'}, { title : 'Grumpy'}, { title : 'Happy'}, { title : 'Sleepy'}, { title : 'Sneezy'}];
              var win = Ti.UI.createWindow( {
                  backgroundColor : 'white'
              } );
              var searchBar = Ti.UI.createSearchBar();
              var tableView = Ti.UI.createTableView( {
                  backgroundColor : '#999',
                  search : searchBar,
                  data : data,
                  top : 150,
                  bottom : 150,
                  left : 150,
                  right : 150
              } );
              win.add( tableView);

      The problem is still here if I force the ListView or the SearchBar width.
      Tested on Simulator iOS 10 / 11 and physical iPad iOS 11

      In SDK 6.2.X there is a problem on the SearchBar and Search Result positions when focused.
      When the ListView is in a view, the SearchBar "top" property is set to the Window (instead of the View)
      I mean, when the ListView is added to a View, and the View added to a Window. The ListView is top : 50 for example. When the SearchBar is focused, its top become 50 from the Window. It should be from the View like the ListView.
      There is the exact same problem on the SearchResult with the "left" property

      This problem is fixed in the RC 6.3.0.v20171017063048 but the SearchBar width problem is still there --> TIMOB-25358


        1. after focus.png
          after focus.png
          70 kB
        2. before focus.png
          before focus.png
          71 kB
        3. during focus.png
          during focus.png
          163 kB
        4. TestSearchResult.zip
          30 kB



            • Assignee:
              vijaysingh Vijay Singh
              geoffrey.noel geoffrey.noel
              Hans Knöchel
              Eric Wieber (Inactive)
            • Watchers:
              0 Start watching this issue


              • Created:

                Backbone Issue Sync

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

                  Git Integration