[TIMOB-17459] iOS: TextArea - Cannot see value in TextArea if height is over 100% and a child of a ScrollView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2015-01-15T22:33:31.000+0000 |
Affected Version/s | Release 3.2.3, Release 3.3.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-3.4.0 |
Reporter | Wilson Luu |
Assignee | Ingo Muschenetz |
Created | 2014-08-06T00:21:32.000+0000 |
Updated | 2017-03-20T21:56:27.000+0000 |
Description
*Details:* Cannot see value in TextArea if height is over 100% and a child of a ScrollView.
*Note:*
1. This does *not* occur on Android
2. This is *not* a regression with 3.2.3.GA
3. If you just add the TextArea to the Window (TextArea is only a child of Window) with height over 100%, then you can see TextArea.value
*Steps to reproduce:*
1. Create a Titanium classic app with the following code:
var win = Ti.UI.createWindow({
backgroundColor: "white",
layout: "vertical"
});
var label = Ti.UI.createLabel({
top: "30dp",
text: "monkey"
});
var scrollView = Ti.UI.createScrollView({
contentHeight: "auto",
showVerticalScrollIndicator: true,
height: "90%",
width: Ti.UI.SIZE,
scrollType: "vertical"
});
var textArea = Ti.UI.createTextArea({
backgroundColor:"#484850",
height: "180%",
width: "85%",
editable: false,
color: "#fff",
value: "lord"
});
scrollView.add(textArea);
win.add(label);
win.add(scrollView);
win.open();
2. Install app to an iOS device
*Actual:* You do not see TextArea.value (see actual.png).
*Expected:* You should see TextArea.value (see expected.png)
Attachments
File | Date | Size |
---|---|---|
actual.png | 2014-08-06T00:21:32.000+0000 | 29186 |
expected.png | 2014-08-06T00:21:32.000+0000 | 30522 |
Issue reproduces with TiSDK 3.2.3, 3.3.0 and 3.4.0 Titanium Command-Line Interface, CLI version 3.3.0, iOS SDK: 7.1 iOS iPhone Simulator: 7.1
Resolving ticket as invalid. Placing a percentage inside a SIZE (or auto) container is undefined behavior. Reference: http://docs.appcelerator.com/titanium/latest/#!/guide/UI_Composite_Layout_Behavior_Spec-section-4196675_UICompositeLayoutBehaviorSpec-UNDEFINEDbehavior
Closing ticket as invalid.