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

Android: The text in a button is not centered, it's slightly up

    Details

      Description

      Problem Description

      In 1.7.6, when you centered the text in a button, you will get it in the center vertical and horizontal. With 2.1CI, the text will appear more close to the top.

      Actual Results

      The text is closer to the top

      Expected results

      The button should be in the center, either vertical and horizontal

      Test Case

      1. Create a new mobile Project
      2. Paste this code:

       
      var winMain = Ti.UI.createWindow({
      	backgroundColor : 'white',
      	fullscreen : false,
      	navBarHidden : true
      });
       
       
      var logoutButton = Ti.UI.createButton({
      	title : 'Logout',
      	backgroundColor:'orange',
      	//backgroundImage:'none',
      	width : 60,
      	height : 40,
      	top : 100,
      	font : {
      		fontSize : 12,
      		fontfamily : 'Helvetica Neue',
      		fontWeight : 'bold'
      	}
      });
      winMain.add(logoutButton);
       
      winMain.open();
      

      3. Test in 1.7.6
      4. Test in 2.1CI

      Extra info

      The example can be seen in pic210.png for the 2.1CI, and in pic2_176.png for the 1.7.6

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ayeung Allen Yeung
                Reporter:
                mpmiranda Mauro Parra-Miranda
              • Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code