Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13098] MobileWeb: attempt to use ScrollView results in exception

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-03-18T18:51:11.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 06 JS, 2013 Sprint 06
ComponentsMobileWeb
Labelsregression
ReporterYaroslav Pidstryhach
AssigneeBryan Hughes
Created2013-03-18T13:33:42.000+0000
Updated2013-04-18T09:37:27.000+0000

Description

*Reproduction steps:* Create a View and a ScrollView. Add the View to the ScrollView. Add the ScrollView to a Window. (or run the attached project) *Expected result:* Empty window with ScrollView will be shown. *Actual result:* TypeError: Result of expression 'value' [undefined] is not an object. *Additional information:* This sample was copied form the Titanium documentation. SDK 3.1.0.v20130306185542. All works fine with SDK 3.0.2.GA. *Code example:*
Titanium.UI.setBackgroundColor('#000');

var win = Ti.UI.createWindow({
  backgroundColor: 'white',
  exitOnClose: true,
  fullscreen: false,
  title: 'ScrollView Demo'
});

var scrollView = Ti.UI.createScrollView({
  contentWidth: 'auto',
  contentHeight: 'auto',
  showVerticalScrollIndicator: true,
  showHorizontalScrollIndicator: true,
  height: '80%',
  width: '80%'
});

var view = Ti.UI.createView({
  backgroundColor:'#336699',
  borderRadius: 10,
  top: 10,
  height: 2000,
  width: 1000
});

scrollView.add(view);
win.add(scrollView);
win.open();

Attachments

FileDateSize
TestScrollView.zip2013-03-18T13:33:42.000+00001553151

Comments

  1. Bryan Hughes 2013-03-18

    PR: https://github.com/appcelerator/titanium_mobile/pull/3980
  2. Paras Mishra 2013-04-18

    Working as expected , hence closing it. Verified on: SDK: 3.1.0.GA CLI version : 3.1.0-cr OS : MAC OSX 10.7.5 Titanium Studio, build: 3.1.0.201304151600 XCode : 4.5.1

JSON Source