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

Windows: textAlign property of Button does not work in 8.1 or 10.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.4.0
    • Component/s: None
    • Labels:
    • Environment:

      Ti SDK: 5.3.0.v20160509143032
      Environment: WIndows 10 Pro
      Building For Windows 8.1 & Windows 10.0

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

      Description

      Problem

      The textAlign property of Button does not work in Windows 8.1 or 10. It appears to be working for other elements like label though.

      Test case

      <Alloy>
          <Window class="container">
              <TableView id="exampleTable">
                  <TableViewRow class="exampleRow" >
                      <Button class="leftC" 		title="LEFT Button"	/>
                      <Button class="centerC"  	title="CENTER Button"	/>
                      <Button class="rightC" 		title="RIGHT Button"	/>
                  </TableViewRow>
                  <TableViewRow class="exampleRow" >
                      <Label class="leftC" 		text="LEFT Label"	/>
                      <Label class="centerC"  	text="CENTER Label"	/>
                      <Label class="rightC" 		text="RIGHT Label"	/>
                  </TableViewRow>
              </TableView>
          </Window>
      </Alloy>
      

      ".container": {
      	backgroundColor: '#FFFFFF'
      }
       
      "#exampleTable": {
      	top: '20%'
      }
       
      ".leftC": {
      	left: '10%',
      	width: '20%',
      	textAlign: Titanium.UI.TEXT_ALIGNMENT_LEFT,
      	color: '#9AC34D',
      	backgroundColor: "#764dc3"
      }
       
      ".centerC": {
      	width: '20%',
      	textAlign: Titanium.UI.TEXT_ALIGNMENT_CENTER,
      	color: '#9AC34D',
      	backgroundColor: "#764dc3"
      }
       
      ".rightC": {
      	right: '10%',
      	width: '20%',
      	textAlign: Titanium.UI.TEXT_ALIGNMENT_RIGHT,
      	color: '#9AC34D',
      	backgroundColor: "#764dc3"
      }
      

      Logs

      Discussions

      Expect the same functionality as iOS & Android. I was using the CLI to build for 8.1 & 10.0:
      appc titanium build --platform windows --target ws-local --wp-sdk 8.1
      appc titanium build --platform windows --target ws-local --wp-sdk 10.0

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              kdclaw3@gmail.com Dee Clawson
              Reviewer:
              Kota Iguchi (Inactive)
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code