Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13391] Mobile Web: ScrollableView does not work

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNeeds more info
Resolution Date2013-04-05T04:45:46.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterAndrey Verbin
AssigneeChris Barber
Created2012-11-23T04:28:26.000+0000
Updated2014-06-19T12:42:40.000+0000

Description

Scrollable view unusable Problems: 1. It scrolls very badly, not intuitive 2. Sometimes it flickers displaying scrollableview background 3. Does not always show next page, when I tap on an image it disapper Also ImageView does not honor it size, width, or height properties. They are equal to image size despite that I set them to 100x100 *Test case*
var wnd = Ti.UI.createWindow();
Ti.UI.backgroundColor = "#FFFFFF"

function scrollableBug() {
	var pager = Ti.UI.createScrollableView({
		backgroundColor : "green",
		size : {
			width : 100,
			height : 100
		}
	});
	for (var i = 0; i < 10; ++i) {
		var image = Ti.UI.createImageView({
			image : "http://media.tumblr.com/tumblr_m5hj6qeQ7r1qawqhu.png",
			size : {
				width : 100,
				height : 100
			}
		});
		pager.addView(image);
	}
	wnd.add(pager);
}

scrollableBug();
wnd.open();

Comments

  1. Daniel Sefton 2013-04-04

    Tested and confirmed in Firefox.
  2. Bryan Hughes 2013-04-04

    Note: Firefox is not an officially supported browser (desktop browsers in general are not officially supported). Is this reproducible in mobile safari, Android Browser, or Chrome for Android?
  3. Daniel Sefton 2013-04-05

    Of course, oops! Mobile Safari: The app doesn't even run, it just displays the Appcelerator splash screen. Android Browser: Scrolls fine, although some stuttering does occur if you swipe really fast. Chrome for Android: Same as Android Browser. In answer to the points in the description: 1. Unless you swipe really fast, it scrolls perfectly fine. 2. Doesn't flicker for me. 3. Images don't disappear, and I can move onto the next page. It stutters a bit only if I swipe really fast. I'm going to resolve as Needs More Info -- Andrey, can you clarify what browser(s) you tested this on? Like Bryan says, we don't support desktop browsers, so hopefully you tried it on mobile browsers. Thanks.

JSON Source