Details
-
Type:
Bug
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: Release 2.0.2, Release 2.1.1, Release 3.0.0
-
Fix Version/s: Release 2.1.4, Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20
-
Component/s: iOS
-
Labels:
-
Environment:
iOS 5.1
Titanium SDK 2.0.2, 2.1.0, 2.2
-
Sprint:Release 3.0.0
Description
Problem
In ScrollView when we set 'layout' to 'Horizontal' content is being cut-off (iOS_iPad_MIDDLE.jpg) when it goes beyond the bottom of the device screen.
The customer relies on a such layout content that should use 'layout' to 'Horizontal' in ScrollView UI element, growing up according the height contents dynamically.
Stripped down simple sample
function createBlock(color) {
|
|
var view = Ti.UI.createView({
|
backgroundColor : color,
|
width : 400,
|
height : 400,
|
borderColor : "white"
|
});
|
return view;
|
}
|
|
var currentWindow = Ti.UI.createWindow();
|
|
var scrollView = Titanium.UI.createScrollView({
|
backgroundColor : 'red',
|
contentWidth : 'auto',
|
contentHeight : 'auto',
|
top : 0,
|
showVerticalScrollIndicator : true,
|
showHorizontalScrollIndicator : true,
|
layout:'horizontal'
|
});
|
|
var view = Ti.UI.createView({
|
width : 'auto',
|
height : 'auto',
|
layout : 'vertical'
|
});
|
|
view.add(createBlock("blue"));
|
view.add(createBlock("orange"));
|
view.add(createBlock("green"));
|
view.add(createBlock("purple"));
|
view.add(createBlock("gray"));
|
|
scrollView.add(view);
|
|
currentWindow.add(scrollView);
|
currentWindow.open();
|
Attachments
Issue Links
- relates to
-
TIMOB-11707 scrollableView height property set to Ti.UI.SIZE causes view to not display at all
- Closed