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

iOS7: Label text partially hiding so height has to be increased one point

    Details

      Description

      Issue description

      In iOS 7 label text is partially hiding (16dp). Same label looks good in iOS 6.

      If you changed the height of the label (increased one point), it looks good in iOS 7. Attached are screenshots (iOS 6 & iOS7) for wider info.

      Code to reproduce

      // this sets the background color of the master UIView (when there are no windows/tab groups on it)
      Titanium.UI.setBackgroundColor('#000');
       
      var win = Titanium.UI.createWindow({
        backgroundColor : '#fff',
        layout : 'vertical'
      });
       
      var label1 = Titanium.UI.createLabel({
      	top:'30dp',
      	color : '#000',
      	width : '30%',
      	height : '17dp',//17dp will work fine in iOS7 
      	text : 'I am Window 1 and it is long text',
      	backgroundColor : '#ccc',
      	font : {
      		fontSize : 14,
      		fontFamily : 'Helvetica Neue'
      	},
      	textAlign : 'left'
      });
      win.add(label1);
       
      var label2 = Titanium.UI.createLabel({
      	top:'30dp',
      	color : '#000',
      	width : '40%',
      	height : '16dp',//16dp will fail in iOS7 
      	text : 'I am Window 1 and it is long text',
      	backgroundColor : 'yellow',
      	font : {
      		fontSize : 14,
      		fontFamily : 'Helvetica Neue'
      	},
      	textAlign : 'left'
      });
      win.add(label2);
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                egomez Eduardo Gomez (Inactive)
                Reviewer:
                Pedro Enrique (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code