Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11366] iOS: StyledLabel module 1.5.2 doesn't have transparent background colour

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-10-18T00:21:34.000+0000
Affected Version/sRelease 2.1.2, Release 2.1.3, Release 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterMads Moller
AssigneeIngo Muschenetz
Created2012-10-04T20:04:43.000+0000
Updated2014-06-19T12:43:47.000+0000

Description

*Problem* It is not possible to have a transparent background with the iOS module: StyledLabel version 1.5.2. It remains a white background. *Expected result* The StyledLabel should be able to have a transparent background. *Note* This question has also been asked here 2 months ago: https://marketplace.appcelerator.com/apps/790/questions/943?1603158271 This is despite having "iOS: The background of the styled label view is now transparent." in the v1.3 changelog. *Code*
var win = Ti.UI.createWindow({
	title : 'StyledLabel',
	backgroundColor: '#FF00FF'
});

var StyledLabel = require('ti.styledlabel');
var html = 'Testing 123';

var label = StyledLabel.createLabel({
	height : Ti.UI.SIZE || 'auto',
	top : 5,
	right : 5,
	bottom : 5,
	left : 5,
	html : html,
	backgroundColor: 'transparent'
});

win.add(label);
win.open();

Comments

  1. Daniel Sefton 2012-10-10

    Tested and confirmed ti.styledlabel module version 1.5.2, iOS 5.1, TiSDK 2.1.2 GA, 2.1.3 GA, 3.0.0.
  2. Ian Howarth 2012-10-17

  3. Daniel Sefton 2012-10-18

    Ok, thanks for finding that one. Admittedly I didn't search the module JIRAs in this case. I'll close this as duplicate.
  4. Mads Moller 2012-10-18

    Hi Daniel and Ian, So where can I watch the old original ticket?
  5. Daniel Sefton 2012-10-18

    Hi Mads, TIMODOPEN-123? You should be able to just click the "Watch" link under Reporter.
  6. Daniel Sefton 2012-10-18

    Sorry I meant to reference TIMODOPEN-129.
  7. Mads Moller 2012-12-04

  8. Ian Howarth 2012-12-04

    I've asked our module manager about this issue and should have an update for you very soon.
  9. Anas Mammeri 2013-07-24

    Hello. I dont have access to the first jira ( TIMOB-11363 ). A solution has been found ? In the current version of the styledLabel module (iphone : '1.5.4', android: '2.0.1') the problem is still here.
  10. Anas Mammeri 2013-07-24

    Hello. I dont have access to the first jira ( TIMOB-11363 ). A solution has been found ? In the current version of the styledLabel module (iphone : '1.5.4', android: '2.0.1') the problem is still here.
  11. Ian Howarth 2013-07-30

    Hi, This property has been added and is in the process of being merged. There will be an update soon. Thanks.
  12. Andrei Zelnikov 2013-08-11

    1.5.4 doesn't work: backgroundColor : 'transparent'
  13. Andrei Zelnikov 2013-08-11

    Forgot to mark - Titanium SDK 3.1.1 GA

JSON Source