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

iOS: iPad popover changes tableView height

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 1.7.0
    • Fix Version/s: 2013 Sprint 10
    • Component/s: iOS
    • Environment:

      + *Product*: Mobile
      + *Titanium SDK*: Mobile 1.7.0 RC1
      + *Platform OS*: iOS
      + *Platform OS Version*: 4.3.2

      Description

      Problem

      When a popover is called it changes table view height. Gap can be seen between last row and bottom of the window.

      Steps to Reproduce

      1. Click the Text Field on the right to show the popover
      2. Then scroll down

      Code to Reproduce

      app.js

      //ROOT WINDOW
      var tabGroup = Titanium.UI.createTabGroup();
       
      var w = Ti.UI.createWindow({
          backgroundColor:'#fff',
          orientationModes:[Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT]
      });
       
      var win1 = Ti.UI.createWindow({
          backgroundColor:'#f00',
          title:'Red'
      });
      var tab1 = Titanium.UI.createTab({
          title:'Red',
          window:win1
      });
       
      var win2 = Ti.UI.createWindow({
          backgroundColor:'#0f0',
          title:'Green'
      });
      var tab2 = Titanium.UI.createTab({
          title:'Green',
          window:win2
      });
       
      tabGroup.addTab(tab1);
      tabGroup.addTab(tab2);
       
      //POPOVER
      var popover = Ti.UI.iPad.createPopover({
          title:'Numpad',
          width:189,
          height:205,
      });
       
      //TABLE VIEW
       
      var section = Ti.UI.createTableViewSection();
       
      for (var i = 0; i < 20; i++) {
          var row = Ti.UI.createTableViewRow({
              height:100,
              title:'Row ' + (i + 1)
          });
          var txt = Titanium.UI.createTextField({
              width:62,
              height:37,
              right:50,
              borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED
          });
          txt.addEventListener('focus', function(e) {
              e.source.blur();
              popover.show({
                  view:e.source,
                  animated:true
              });
          })
          row.txt = txt;
          row.add(row.txt)
          section.add(row);
      }
       
      var data = [section];
       
      var tableView = Ti.UI.createTableView({
          data:data
      });
       
      win1.add(tableView);
       
      w.open();
      tabGroup.open();
      

        Attachments

          Activity

            People

            • Assignee:
              jithinv@exalture.com jithinpv
              Reporter:
              egomez Eduardo Gomez (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration