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

iOS: SearchBar covered section header when using Grouped Table Style

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: Release 3.5.1
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Titanium SDK version: 3.5.1 GA
      Platform & version: & iOS 8.2
      Device Details: iPhone 5 and 5S and simulator
      Host Operating System: OS X 10.9 & OS X 10.10
      Titanium Studio version: 3.4.1.201410281727

    • Sprint:
      2015 Sprint 07 SDK

      Description

      Problem description

      When adding a searchbar to a tableview with TableViewStyle 'GROUPED' the first section is covered by the searchbar.
      If the searchbar get the focus the first section is completely hidden when the data is modified.

      Steps to reproduce

      1. Create a tableview with sections and a searchbar
      2. add add focus eventlistener to the searchbar
      3. modify data and set it to the table to force the table refresh

      Test case

      app.js

      (function() {
      	Ti.UI.backgroundColor = 'white';
       
      	var win = Ti.UI.createWindow({backgroundColor : '#ffffff'});
      	var table;
      	var view = Titanium.UI.createView({backgroundColor : "#FFFEEE",top : 0});
      	
      	var section1 = Titanium.UI.createTableViewSection();
      	var section2 = Titanium.UI.createTableViewSection();
       
          section1.headerView = Ti.UI.createView({height: 1});       
          section2.headerView = Ti.UI.createView({height: 1});     
          
          section1.footerView = Ti.UI.createView({height: 1});  
          section2.footerView = Ti.UI.createView({height: 1});
          
      	section1.add(Ti.UI.createTableViewRow({title : "Test Row 1"}));
      	section2.add(Ti.UI.createTableViewRow({title : "Test Row 2"}));
      		
      	var search = Titanium.UI.createSearchBar();
      	
      	search.addEventListener('focus', function(e){
      		table.setData(table.data);
      	});
      	
      	table = Ti.UI.createTableView({
      		search : search,
      		data : [section1,section2],
      		style : Ti.UI.iPhone.TableViewStyle.GROUPED
      	});
       
      	view.add(table);
      	win.add(view);
      	
      	win.open();
      })();	
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                Esche Markus Eschenbach
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code