Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18242] 'Ti.UI.iPad.Popover' error message showing 3.4.2 instead of 3.5.0 SDK version

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2014-12-17T02:55:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsqe-3.5.0
ReporterFederico Casali
AssigneeIngo Muschenetz
Created2014-12-17T02:49:01.000+0000
Updated2017-03-20T21:56:51.000+0000

Description

Problem description

Following TIMOB-17805, Ti.UI.iPad.Popover objects have been refactored and are defined in a different way. If using a sample code working with 3.4.1.GA where a rightNavButton or a title property is defined in the popover, an exception is thrown as expected, however, in the console log, 3.4.2 is mentioned instead of 3.5.0 as the SDK version where it has been removed.

Steps to reproduce

1. Run the following sample with latest 3.5.X:
var win = Ti.UI.createWindow({backgroundColor: 'white'});

var rightButton = Ti.UI.createButton({title: 'Robin'});
rightButton.addEventListener('click', function(e){
    alert("But green's the color of spring.");
});

var popover = Ti.UI.iPad.createPopover({
    width: 250,
    height: 100,
    title:"I'm green",
    rightNavButton: rightButton
});

var button = Ti.UI.createButton({title: 'Open Popover!'});
button.addEventListener('click', function(e){
    popover.show({ view: button });
});
win.add(button);

win.open();
2. Click on the 'Open Popover' label Result: Application error is shown (as expected). Console log however displays SDK 3.4.2 instead of 3.5.0:
[ERROR] Support for setting title on the popover directly is removed in 3.4.2
[ERROR] Support for setting rightNavButton on the popover directly is removed in 3.4.2

Comments

  1. Ingo Muschenetz 2014-12-17

    This was removed in 3.4.2 (as shown in TIMOB-17805) thus that is the proper version to display. The fact that we did not release 3.4.2 does not mean that it's still not the correct version (should we ever release 3.4.2)
  2. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source