Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9459] Android: TextArea: The text of the label comes over the border of the label.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-07-10T22:09:18.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and060112
ReporterNeha Chhabra
AssigneeEric Merriman
Created2012-06-08T04:08:03.000+0000
Updated2017-07-10T22:09:24.000+0000

Description

The text of the label comes over the border of the label. This is a regression.This works fine on 1.8.2,2.0.1 and 2.0.2. Steps to Reproduce: 1. Run the below code on device. app.js
var _window=Ti.UI.createWindow ({
		backgroundColor : 'blue'
		})	
		var l1 = Titanium.UI.createLabel({
		    height:Ti.UI.SIZE,
			width:182,
		    font:{fontSize:12,fontFamily:'ARIAL', fontWeight:'solid'},
			color:'#000',
			textAlign:'left',
			top:20,
			borderWidth:2,
			borderColor:'#bbb',
			borderRadius:10,
			text:"This test is to ensure that the text is coming as it as it should be. the text should not be hidden by the border of the label."
			
		});
	_window.add(l1);
	_window.open();

Expected Result: The text should be visible properly within the label. Actual Result: The text of the label is coming over the border of the label.

Attachments

FileDateSize
Android_2_0_1GA.png2012-06-11T16:29:44.000+000022977
Android_2_1_0.png2012-06-11T16:29:44.000+000020980
ios_2_1.png2012-06-11T16:29:44.000+000031344

Comments

  1. Josh Roesslein 2012-06-08

    This is related to TIMOB-2099, but the problem of the background being filled has been fixed. The remaining problem is how we draw the border in the background on Android, but on iOS it is drawn in front.
  2. Josh Roesslein 2012-06-08

    Technically this shouldn't be classified as a regression. The issue of borders being drawn in the background has been around for a long time.
  3. Josh Roesslein 2012-06-11

    Here is some screenshots of the behavior on Android between 2.0.1 and 2.1.0 (master). This is not a new regression, but just an issue that was masked by a prior bug which caused the entire background to be filled with the border's color. We are very close to matching the behavior seen on the other platforms (iOS screenshot attached). The issue of the border overlapping with the view is a larger issue which will need to be considered outside the scope of this ticket.
  4. Lee Morris 2017-07-10

    Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.

JSON Source