Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9218] Android:TextArea:Contents of the textArea scrolls up on blur event.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-07-24T18:02:51.000+0000
Affected Version/sRelease 2.0.2
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and051412
ReporterShyam Bhadauria
AssigneeEric Merriman
Created2012-05-24T06:15:56.000+0000
Updated2017-07-24T18:02:51.000+0000

Description

The contents of the textarea scrolls up on firing blur event. Steps to reproduce : Use the app.js given below
var _window = Ti.UI.createWindow({
 backgroundColor: "red"
});

 var textHeight = 55;

 var l1 = Titanium.UI.createLabel({
  height:Ti.UI.SIZE,
  width:182,
  font:{fontSize:12,fontFamily:'ARIAL', fontWeight:'solid'},
  color:'#000',
  textAlign:'left',
  borderWidth:0,
  top:20,
  borderWidth:2,
  borderColor:'#bbb',
  borderRadius:10 
 });
   
 var tf = Titanium.UI.createTextArea({
  height:textHeight,
  width:200,
  font:{fontSize:12,fontFamily:'ARIAL', fontWeight:'solid'},
  color:'#000',
  textAlign:'left',
  color:'#777',
  paddingLeft:0,
  borderWidth:0,
  borderStyle:Titanium.UI.INPUT_BORDERSTYLE_NONE,
  top: 100,
  borderWidth:2,
  borderRadius:10
 });
  
 var b1 = Titanium.UI.createButton({
 title:'Blur',
 width:200,
 height:40,
 top:160
});
 
 tf.scrollable = false;
  
 tf.addEventListener('change',function(e)
 {
  l1.text = tf.value;
 });
  
 _window.add(l1);
 _window.add(tf); 
 _window.add(b1);
 
 b1.addEventListener('click', function(e){
 tf.blur();
 });

_window.open();
1. Enter 3 lines of text into the textArea 2. Click on the blur button 3. Tap on the textArea to focus on the textArea Expected results: After step 3: Contents of the textArea should not scroll up Actual results: After step 3: Contents of the textArea scrolls up on firing blur event. It is also occurring in 2.0.1 and 1.8.2 build. Not occurring on android 3.2 and android 4.0.2 (Reference test case : Titanium.UI.TextArea Acceptance TIMOB-4976)

Comments

  1. Shameer Jan 2013-03-07

    The problem cannot reproduces with android 4.0.4. tested on Titanium Studio, build: 3.0.2.201302191606 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2 After Tap on the textArea, it focus corresponding textArea.
  2. Lee Morris 2017-07-24

    I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source