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

Windows: Layout does not seem to consider left and right properties

    Details

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

      Ti SDK: 6.1.1.v20170614134051
      Appc Core: 6.2.2
      Appc NPM: 4.2.9
      Lumia 550 10.0
      10.0 ws-local

    • Story Points:
      5
    • Sprint:
      2017 Sprint 15 SDK

      Description

      Description

      In the code below, when setting the left or right property on the label, this does not seem to be taken into consideration by the layout engine and the label text will therefore overflow the edges of the screen, playing with the text property and the left and right properties demonstrates this

      var _window = Ti.UI.createWindow();
      var lbl = Ti.UI.createLabel({
          text:'number1. This is some long text. 2. This is some long text. 3. This is some long text. 4. This is some long text. 5. This is some long text. 6. This is some long text. 7. This is some long text. 8. This is some long text. 9. This is some long text. 10. This is some long text. 11. This is some long text. 12. This is some long text. 13. This is some long text. 14. This is some long text. 15. This is some long text. 16. This is some long text. 17. This is some long text. 18. This is some long text.',
          height:'auto',
          right: 10,
      //  left:10,
          top:10,
          bottom:10
      });
      _window.add(lbl);
      _window.open();
      
      

      Steps to reproduce
      1. Add the above to an existing app.js
      2. Build for a windows target
      Actual

      Left and right are not taken into consideration

      Expected

      Left and right should be taken into consideration when laying them out

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code