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

Windows: Label's width/height doesn't recalculate right when it contained in View with set width/height

    Details

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

      TI SDK 6.1.0.GA
      Windows Phone SDK 10.0

    • Story Points:
      5
    • Sprint:
      2017 Sprint 13 SDK, 2017 Sprint 19 SDK

      Description

      Problem

      While building UI in Windows, we've came to notice that, when a Label's height and width are set to Ti.UI.SIZE AND it is contained in a View whose Width property is set (e.g. width: '50%', width: '500'), the size of the Label seems not to be recalculated correctly. This works fine in Android and iOS.

      Reproduce

      1. Run the attached simple code in a empty alloy project.
      2. Observe how the long text is cut off in both labels.

      Note

      If the container view (in this case, wrapperLeft or wrapperRight) has a Ti.UI.SIZE or Ti.UI.FILL (or not fixed value), the issue disappears.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                sliang Shuo Liang
                Reviewer:
                Ewan Harris
                Tester:
                Ewan Harris
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code