Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9346] MobileWeb: ScrollableView with no views causes error on swipe

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2012-06-05T11:06:42.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterChris Barber
AssigneeBryan Hughes
Created2012-06-02T02:48:19.000+0000
Updated2014-01-28T23:48:58.000+0000

Description

There's a bug in ScrollableView where if it doesn't have any views, the swipe event causes _add() to get fired a ton and error when trying to set view._hidden = hidden.
var win = Ti.UI.createWindow({
	backgroundColor: "#fff"
});

win.open();

var sv = Ti.UI.createScrollableView({
	left: 20,
	top: 20,
	bottom: 20,
	right: 20,
	backgroundColor: "yellow"
});

win.add(sv);

Comments

  1. Bryan Hughes 2012-06-05

    This will be resolved when we rework scrollableview in TIMOB-8355. The bug is in some code that is going away.

JSON Source