Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10539] MobileWeb: scrollView - leaves space at the top when doing vertical layout

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-01-29T21:48:24.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.1.0, 2013 Sprint 03 JS, 2013 Sprint 03
ComponentsMobileWeb
Labelsapi, qe-port
ReporterJon Alter
AssigneeBryan Hughes
Created2012-08-21T16:52:47.000+0000
Updated2013-02-28T06:55:38.000+0000

Description

When using layout: "vertical" on a scrollView, there is a gap above the view added to the scrollView.

Steps to repro:

1. run the code below 2. notice that there is a gap above the blue box 3. remove the 'layout: "vertical",' 4. run the code again 5. notice that the gap above the blue box is gone
var win  = Ti.UI.createWindow({
	backgroundColor: 'white'
});
win.open();

var scrollView = Ti.UI.createScrollView({
	contentHeight: "auto",
	layout: "vertical",
	backgroundColor: 'pink'
});
var view = Ti.UI.createView({
	top: 0,
	height: 40,
	width: 40,
	backgroundColor: 'blue'
});

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

Comments

  1. Bryan Hughes 2013-01-02

    Fixed in TIMOB-12112
  2. Bryan Hughes 2013-01-03

    Reponening since we aren't re-architecting scrollview anymore
  3. Bryan Hughes 2013-01-29

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/3817
  4. Shyam Bhadauria 2013-02-28

    Environment used for verification - Titanium SDK: 3.1.0.v20130226024607 Titanium  Studio:3.0.2.201302141201 Chrome Version 23.0.1271.101

JSON Source