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

Windows: Setting label.color to null causes label text to become transparent

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.2, Release 7.0.0, Release 6.2.0
    • Fix Version/s: Release 7.0.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.1.2.GA, 6.2.0.v20170906064110, 7.0.0.v20170906135653

    • Story Points:
      3
    • Sprint:
      2017 Sprint 22 SDK, 2017 Sprint 23 SDK

      Description

      Description

      Setting color property of a label to null causes the label text to become transparent, it should go to the default colour for the platform, I have not tested any other UI elements

      var _window = Ti.UI.createWindow();
      var label = Ti.UI.createLabel({
          text: 'just a test label'
      });
      label.addEventListener('click', function(e) {
          label.color = null;
      });
      _window.add(label);
      _window.open()
      

      Steps to reproduce
      1. Add the above code to an existing app.js
      2. Tap the label
      Actual

      Label becomes transparent

      Expected

      Label should go to default color

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
                Tester:
                Josh Longton
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code