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

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

    Details

    • 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:

      Description

      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);
              win.open();
      

      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

        Attachments

        1. after focus.png
          70 kB
          geoffrey.noel
        2. before focus.png
          71 kB
          geoffrey.noel
        3. during focus.png
          163 kB
          geoffrey.noel

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              geoffrey.noel geoffrey.noel
              Reviewer:
              Hans Knöchel
              Tester:
              Eric Wieber
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code