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

Android: TableView and SearchBar used together cause height: Ti.UI.SIZE to be ignored

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Release 3.2.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Titanium Studio, build: 3.1.3, 3.2.0
      Android Emulator, 4.0.3

      Description

      TableView behaves like the height property is set to Ti.UI.FILL - even if set to Ti.UI.SIZE when a searchBar is added via the search property. In the screen shot, you can see the result of toggling the search property on or off for the tableView. The table has no data/rows attached. With no search property set, the window background (white) is visible. When toggling it on, the table view with the red background fills the screen.

      Initially posted here: http://developer.appcelerator.com/question/158544/android-searchbar-and-tableview-height-issue-with-tiuisize

      app.js

       
      var win = Ti.UI.createWindow({
          backgroundColor:'#fff'
      });
       
      var searchBar = Ti.UI.createSearchBar({
          top      : 0,
          width    : Ti.UI.FILL,
          height   : 43,
          barColor : '#FFF',
          hintText : 'Search'
      });
      var searchTable = Ti.UI.createTableView({
          //search  : searchBar,
          top     : 0,
          width   : Ti.UI.FILL,
          height  : Ti.UI.SIZE,
          backgroundColor: '#ff0000',       
      });
       
      win.add(searchTable);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jwebster Joe Webster
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration