Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17266] Popover: passthroughViews only work when the popover is first shown. Fails on subsequent tries.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-07-10T21:41:46.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-3.3.0
ReporterBenjamin Hatfield
AssigneeEric Merriman
Created2014-07-02T22:31:15.000+0000
Updated2017-07-10T21:41:46.000+0000

Description

REPRODUCTION: Run the code below in the iPad simulator. RESULTS: Click on the "Open Popover!" button to show the popover. Click on the "Click Me!..." button. The popover does not dismiss. Dismiss the popover and click on the "Open Popover!" button to show the popover again. Click on the "Click Me!..." button. The popover is dismissed. EXPECTED RESULTS: The popover should not be dismissed when clicking on a passthrough view. OTHER NOTES: If the contentView is a Window, the popover does not display properly the first time. TEST CODE: {noformat} var win = Ti.UI.createWindow({backgroundColor: 'white'}); var button2 = Ti.UI.createButton({ title: 'Click Me! I do nothing!', top: 25 }); win.add(button2); var contentWindow = Ti.UI.createWindow({ backgroundColor: 'green', title: 'Popover' }); contentWindow.add(Ti.UI.createLabel({text: "I'm a popover!"})); var navWindow = Ti.UI.iOS.createNavigationWindow({window: contentWindow}); var popover = Ti.UI.iPad.createPopover({ //contentView: contentWindow, contentView: navWindow, passthroughViews: [button2] }); var button = Ti.UI.createButton({title: 'Open Popover!'}); button.addEventListener('click', function(e){ popover.show({ view: button }); }); win.add(button); win.open(); {noformat}

Comments

  1. Wilson Luu 2014-07-03

    This is not a regression. Was able to reproduce the issue on: SDK build: 3.2.3.GA Appcelerator Studio, build: 3.3.0.201406271159 CLI: 3.3.0-rc4 Alloy: 1.4.0-rc3 Xcode: 5.1.1 Device: iPad Air (7.1.2)
  2. Lee Morris 2017-07-10

    I am unable to reproduce this issue with the following environment; iPhone 6 and Simulator (10.0) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source