[TIMOB-10539] MobileWeb: scrollView - leaves space at the top when doing vertical layout
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-01-29T21:48:24.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 03 JS, 2013 Sprint 03 |
Components | MobileWeb |
Labels | api, qe-port |
Reporter | Jon Alter |
Assignee | Bryan Hughes |
Created | 2012-08-21T16:52:47.000+0000 |
Updated | 2013-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);
Fixed in TIMOB-12112
Reponening since we aren't re-architecting scrollview anymore
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/3817
Environment used for verification - Titanium SDK: 3.1.0.v20130226024607 Titanium Studio:3.0.2.201302141201 Chrome Version 23.0.1271.101