Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16511

iOS: Text in label gets truncated (...) when changing fontWeight from normal to bold

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.1
    • Fix Version/s: Release 7.5.0
    • Component/s: iOS
    • Labels:
    • Environment:

      Titanium Studio 3.2.1.201402041146, Ti SDK 3.2.0+, iOS6 & 7 (tested on both device and simulator)

    • Story Points:
      5
    • Sprint:
      2018 Sprint 06 SDK, 2018 Sprint 07 SDK, 2018 Sprint 08 SDK, 2018 Sprint 09 SDK, 2018 Sprint 10 SDK, 2018 Sprint 11 SDK, 2018 Sprint 12 SDK, 2018 Sprint 13 SDK

      Description

      If setting either the width or left and right values of a label the text will be truncated when you change the fontWeight of the label. If width or left and right are omitted it resizes the label correctly after changing the fontWeight.

      The label container is "showing" the right size, but text gets truncated anyway.

      Code to reproduce

      var testLbl = Ti.UI.createLabel({
      	text: 'Some semi-long text',
      	font: {
      		fontWeight: 'normal',
      		fontSize: 13
      	},
      	backgroundColor:'#f00',
      	color: '#000',
      	textAlign: 'center',
      	top: 60,
      	// left: 10,
      	// right: 10,
      	width:'90%'
      });
      setTimeout(function(e){
      	testLbl.font = {
      		fontWeight: 'bold',
      		fontSize: 13
      	};
      	//text gets truncated
      }, 1000);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vijaysingh Vijay Singh
                Reporter:
                woodoo Michael Woode
                Reviewer:
                Hans Knöchel
                Tester:
                Samir Mohammed
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18403
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code