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

Windows: The textAlign and verticalAlign property of the label is not working on windows phone

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.1
    • Fix Version/s: Release 5.3.0
    • Component/s: Windows
    • Labels:
    • Environment:

      windows phone

    • Story Points:
      5
    • Sprint:
      2016 Sprint 1 SDK

      Description

      On windows phone the textAlign property of a label is always set to left no matter what I set it, the same for the verticalAlign always default to the top.

      The only way I could make the label text center is to set both its width and height as Ti.UI.SIZE and the label should be centered to the parent view and hence the text. Only a workaround but it's not very convenient because sometimes I would like to change the backgroundColor of the label from the click event but now it only changes the background of size of the text rather than the whole parent view.

      The bug exists on the latest Ti SDK 5.1.1

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              kenjorai Kai Lu
              Tester:
              Harry Bryant
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • It looks like Backbone Issue Sync is not enabled for your project.

                  Git Source Code