Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17459] iOS: TextArea - Cannot see value in TextArea if height is over 100% and a child of a ScrollView

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2015-01-15T22:33:31.000+0000
Affected Version/sRelease 3.2.3, Release 3.3.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-3.4.0
ReporterWilson Luu
AssigneeIngo Muschenetz
Created2014-08-06T00:21:32.000+0000
Updated2017-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

FileDateSize
actual.png2014-08-06T00:21:32.000+000029186
expected.png2014-08-06T00:21:32.000+000030522

Comments

  1. Shameer Jan 2014-08-14

    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
  2. Pedro Enrique 2015-01-15

    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
  3. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source