[TIMOB-9459] Android: TextArea: The text of the label comes over the border of the label.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-07-10T22:09:18.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, qe-and060112 |
Reporter | Neha Chhabra |
Assignee | Eric Merriman |
Created | 2012-06-08T04:08:03.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
Android_2_0_1GA.png | 2012-06-11T16:29:44.000+0000 | 22977 |
Android_2_1_0.png | 2012-06-11T16:29:44.000+0000 | 20980 |
ios_2_1.png | 2012-06-11T16:29:44.000+0000 | 31344 |
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.
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.
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.
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.