Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4339] windows: scrollView doesn't work correctly

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2016-08-10T17:16:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterZakhar Zhuravlev
AssigneeShak Hossain
Created2016-08-08T06:53:57.000+0000
Updated2016-08-10T17:16:26.000+0000

Description

Version: 5.4.0.v20160804185318 *index.js:*
       var scrollView = Ti.UI.createScrollView({
		top: 0,
		left: 0,
		right: 0,
		bottom: 0,
                scrollType: 'horizontal',
		backgroundColor: 'yellow',
	});
	var view= Ti.UI.createView({
		left: 0,
		top: 0,
		bottom: 0,
		width: '1000dp',
		backgroundColor: 'green',
	});
	scrollView.add(view);
	$.win.add(scrollView);
	$.win.open();
it seems that scroll view can't determine content size correctly.

Comments

  1. Gary Mathews 2016-08-08

    Could you provide screenshots and give details of your expected results?
  2. Zakhar Zhuravlev 2016-08-09

    video: http://take.ms/o2iu1
             var scrollView = Ti.UI.createScrollView({
       		top: 0,
       		left: 0,
       		right: 0,
       		bottom: 0,
       		scrollType: 'horizontal',
       		backgroundColor: 'yellow',
       	});
       	var view = Ti.UI.createView({
       		// image: '/icons/default.jpg',
       		left: 0,
       		top: 0,
       		bottom: 0,
       		width: '1000dp',
       		backgroundColor: 'green',
       	});
       	view.add(Ti.UI.createView({
       		top: 0,
       		bottom: 0,
       		width: '400dp',
       		backgroundColor: 'blue',
       		left: '100dp'
       	}));
       	scrollView.add(view);
       	$.win.add(scrollView);
       	$.win.open();
       
    you can see, that scroll view cuts content...
  3. Zakhar Zhuravlev 2016-08-09

    It's working if set contentWidth of scrollView. But in 5.3.0 it's working without it, because of sometimes I don't know width of scrollview's content image.
  4. Sharif AbuDarda 2016-08-09

    Hello, Please test it on SDK 5.3.1.GA. Let us know if it still a problem or not.
  5. Zakhar Zhuravlev 2016-08-10

    Hello. 5.3.1.GA - working fine 5.4.0.v20160809033140 - working fine!!! So, it seems, you can close the ticket.

JSON Source