Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-4469

Alloy Android button element does not set title attribute

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Needs more info
    • Affects Version/s: Appcelerator Studio 4.5.0
    • Component/s: Alloy
    • Labels:
    • Environment:

      MAC OS El Capitan
      5.4.0GA

      Description

      Button title is not set on android when non visiual characters (line break/whitespace)
      are used in following alloy definition:

      <!-- This one works as expected on Android -->
      <Button class="defaultButton"><Label platform="ios" class="defaultLabel"/></Button>
       
      <!-- This does not work on Android -->
      <Button class="defaultButton">
         <Label platform="ios" class="defaultLabel"/>
      </Button>
      

      I would expect that both button definition's would work,
      but when I take a look at the derived files I can see that the buttons title
      attribute is not set for the second button definition.
      In my opinion the label shouldn't have any affect at all cause
      the label is marked as ios only element.

      Sample project:
      https://github.com/MichelBahl/AC-4469

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain
              Reporter:
              mBahl Michael Bahl
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code