[TIMOB-11667] iOS: Label - The view is out of the border.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-12-04T21:55:50.000+0000 |
Affected Version/s | Release 2.1.4 |
Fix Version/s | 2012 Sprint 25, 2012 Sprint 25 API |
Components | iOS |
Labels | qe-ios214 |
Reporter | Olga Romero |
Assignee | Vishal Duggal |
Created | 2012-11-05T19:52:44.000+0000 |
Updated | 2014-06-19T12:43:58.000+0000 |
Description
While testing Label I noticed the content of the white square label is over its blue rounded border.
*not a regression* occurs on 2.1.3
Test steps:
1. Run this code below
var borderWindow = Ti.UI.createWindow({
height: 200,
width: 300,
top: 20
});
var borderView = Ti.UI.createView({
height: 200,
width: 300,
top: 0,
borderRadius: 10,
borderWidth: 2,
borderColor: 'blue',
textAlign: 'center',
opacity: '.6'
});
borderWindow.add(borderView);
borderWindow.open();
Actual result(according to code):
The label's content comes over the border. See screenshots.
Expectes result:
The view should be inside of its border.
Attachments
File | Date | Size |
---|---|---|
Screenshot _border_ios5.png | 2012-11-05T19:52:44.000+0000 | 57960 |
Screenshot_border_iPad4.3.5.png | 2012-11-05T19:52:44.000+0000 | 60674 |
The border is applied to the View not the window. So you are seeing a white square around the window (probably because somewhere in the code you have Ti.UI.setBackgroundColor('white') or equivalent). Explicitly set window background to transparent and it should be fine.
Relate this issue to TIMOB-2099. Closing as invalid.