Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4362] iOS: iPad popover changes tableView height

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-05-09T06:22:10.000+0000
Affected Version/sRelease 1.7.0
Fix Version/s2013 Sprint 10
ComponentsiOS
Labelsheight, ios4.3, ipad, popover, section, tableview
ReporterEduardo Gomez
Assigneejithinpv
Created2011-06-11T13:45:25.000+0000
Updated2017-03-17T18:47:23.000+0000

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

//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

FileDateSize
iOS Simulator Screen shot Jun 20, 2013 2.56.02 PM.png2013-06-20T09:25:21.000+000039605
Tickets.jpg2011-06-11T13:45:25.000+000048190

Comments

  1. Eduardo Gomez 2011-06-11

    Associated Helpdesk Ticket

    http://appc.me/c/APP-758934
  2. Dawson Toth 2011-07-08

    Updated formatting.
  3. jithinpv 2013-05-09

    cannot reproduce Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 iOS iPhone Simulator: iOS SDK version: 6.0
  4. jithinpv 2013-06-20

    Issue does not reproduces Tested with iOS SDK: 5.1 iOS iPhone Simulator: 5.1 Mac OS X Version 10.7.5 Titanium SDK version 3.1.1.v20130606121419 Titanium Studio, build: 3.0.1.201212181159
  5. Lee Morris 2017-03-17

    Closing ticket as the issue cannot be reproduced.

JSON Source