Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23757] Android: TextField goes behind the keyboard when textAlign right position.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-04-12T17:51:36.000+0000
Affected Version/sRelease 5.3.1
Fix Version/sRelease 6.2.0
ComponentsAndroid
Labelsn/a
ReporterMotiur Rahman
AssigneeGary Mathews
Created2016-08-10T18:47:13.000+0000
Updated2017-04-19T22:18:28.000+0000

Description

Description

Just define TextField alignment to the right side and place it bottom of the window. Now touch on it for entering value and click back button then again touch it, now you will see the issue.

Steps to Reproduce.

1. Click on the textbox then soft keyboard will appear and a textbox is able visible. 2. Click on the hardware back button, then the soft keyboard will disappear. 3. Again, click on the textbox box, then soft keyboard is appears, but text box is unable to visible. Actual result : Unable see the textbox. Expected result : Able see the textbox for entering the value. Test Case:
var win = Ti.UI.createWindow({
	backgroundColor : 'white'
});

var customermodule = require('com.customerissue');
Ti.API.info("module is => " + customermodule);

var textField = Ti.UI.createTextField({
	top : "400",
	//left : 10,
	width : 200,
	height : "50",
	borderRadius : 4,
	borderWidth : 1,
	textAlign : Titanium.UI.TEXT_ALIGNMENT_RIGHT,
	borderColor : "#1c76bc",
	keyboardType : Ti.UI.KEYBOARD_NUMBER_PAD,
	returnKeyType : Titanium.UI.RETURNKEY_NUMBER_PAD,
	color : '#3b3c3f',

});

win.add(textField);

win.open();

Thanks.

Comments

  1. Gary Mathews 2016-09-12

    [~morahman] Using the test case provided, I cannot reproduce the issue on either my device or emulator. What device are you using and what version on Android?
  2. Sharif AbuDarda 2017-01-05

    Hello, I also can't reproduce the issue in SDK 6.0.1.GA in Android 6.0.1. device. 1. Click on the textbox then soft keyboard will appear and textbox is visible. 2. Click on the hardware back button, then the soft keyboard will disappear. 3. Again, click on the textbox box, again soft keyboard appears, textbox is visible as expected. Thanks.
  3. Lokesh Choudhary 2017-03-23

    I am able to reproduce the issue with sdk 6.0.3.GA, 6.0.2.GA, 6.0.1.GA. Appc Studio : 4.8.1.201612050850 Mac OS Version : 10.12.3 Xcode Version : Xcode 8.2.1 Build version 8C1002 Appc CLI AND Appc NPM : {"NPM":"4.2.8","CLI":"6.1.0"} Ti CLI : 5.0.11 Alloy : 1.9.5 Node : v4.6.0 Nexus 6 running 6.0.1
  4. Gary Mathews 2017-04-03

    master: https://github.com/appcelerator/titanium_mobile/pull/8922
  5. Samir Mohammed 2017-04-19

    Verified fix in 6.2.0.v20170419095718. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/8922

JSON Source