Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13257] BlackBerry: ScrollView 'click' does not return e.source

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-07-26T04:03:46.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 15 API, 2013 Sprint 15, Release 3.1.2, Release 3.2.0
ComponentsBlackBerry
Labelsblackberry, module_scrollView, qe-testadded, sdk-bb
ReporterRussell McMahon
AssigneePedro Enrique
Created2013-03-28T22:56:44.000+0000
Updated2014-06-19T12:43:45.000+0000

Description

Comments

  1. Priya Agarwal 2013-07-18

    Reopening, As value of e.source in scrollView click event is different when compared to ios/android. code used is:
       
       var win = Ti.UI.createWindow({
         backgroundColor: 'white',
         title: 'ScrollView Demo'
       });
       
       var scrollView = Ti.UI.createScrollView({
         contentWidth: 'auto',
         contentHeight: 'auto',
         showVerticalScrollIndicator: true,
         showHorizontalScrollIndicator: true,
         height: '80%',
         width: '80%',
         backgroundColor:'#336699'
       });
       
       scrollView.addEventListener('click',function(e){
       	Ti.API.info(e.source);
       	Ti.API.info(JSON.stringify(e.source));
       	Ti.API.info(JSON.stringify(e));
       });
       win.add(scrollView);
       win.open();
       
    When the above code was executed in ios/android and blackberry differences found are: iOS/android: Ti.API.info(e.source) returns [object TiUIScrollView]/ti.modules.titanium.ui.ScrollViewProxy@40e2d890 but blackberry: Ti.API.info(e.source) returns [object Object] Now when I used Ti.API.info(JSON.stringify(e.source)); iOS/android: Ti.API.info(JSON.stringify(e.source)) returns all the properties of ScrollView. {"minZoomScale":1,"backgroundColor":"#336699","contentHeight":"auto","maxZoomScale":1,"contentWidth":"auto","height":"80%","showHorizontalScrollIndicator":true,"zoomScale":1,"showVerticalScrollIndicator":true,"scrollingEnabled":true,"width":"80%","canCancelEvents":true,"horizontalWrap":true} but blackberry: Ti.API.info(JSON.stringify(e.source)) returns only {"showVerticalScrollIndicator":true,"showHorizontalScrollIndicator":true} Verified with Environment: Studio: 3.1.2.201307161852 Titanium SDK:3.1.2.v20130710144553 acs:1.0.3 alloy:1.1.3 npm:1.3.2 titanium:3.1.1 titanium-code-processor:1.0.1 OS: OSX 10.8 Device:Blackberry-Z10(v 10.0.10.261),iphone simulator(v6.0),HTC Desire(4.0.3) blackberry SDK: 10.1.0.1020 Xcode: 4.5.1
  2. Pedro Enrique 2013-07-26

    This has been fixed. If the JSON.stringify() returns different results than the other platforms, please open a ticket for that specify issue.
  3. Lokesh Choudhary 2013-08-12

    e.source in blackberry as of now does not show the name of the object & you will see {object object} in the console as compared to other platforms like iphone. Opening a different ticket for it. It more of a feature to be implemented. Thus closing. Environment: Appcel Studio : 3.1.2.201308082014 Ti SDK : 3.1.2.v20130809141556 Mac OSX : 10.8.4 Alloy : 1.2.0-alpha6 CLI - 3.1.2-alpha win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138

JSON Source