Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11667] iOS: Label - The view is out of the border.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-12-04T21:55:50.000+0000
Affected Version/sRelease 2.1.4
Fix Version/s2012 Sprint 25, 2012 Sprint 25 API
ComponentsiOS
Labelsqe-ios214
ReporterOlga Romero
AssigneeVishal Duggal
Created2012-11-05T19:52:44.000+0000
Updated2014-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

FileDateSize
Screenshot _border_ios5.png2012-11-05T19:52:44.000+000057960
Screenshot_border_iPad4.3.5.png2012-11-05T19:52:44.000+000060674

Comments

  1. Vishal Duggal 2012-12-04

    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.
  2. Olga Romero 2013-03-04

    Relate this issue to TIMOB-2099. Closing as invalid.

JSON Source