[TIMOB-13098] MobileWeb: attempt to use ScrollView results in exception
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-18T18:51:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.1.0, 2013 Sprint 06 JS, 2013 Sprint 06 |
Components | MobileWeb |
Labels | regression |
Reporter | Yaroslav Pidstryhach |
Assignee | Bryan Hughes |
Created | 2013-03-18T13:33:42.000+0000 |
Updated | 2013-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
File | Date | Size |
---|---|---|
TestScrollView.zip | 2013-03-18T13:33:42.000+0000 | 1553151 |
PR: https://github.com/appcelerator/titanium_mobile/pull/3980
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