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

Android-Ti.UI.SIZE doesn't work properly with horizontal layouts

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.0
    • Fix Version/s: Release 6.0.2
    • Component/s: Android
    • Labels:
    • Environment:

      SDK: 6.0.0.GA
      Appc CLI : 6.0.0
      Simulator : Samsung Galaxy S7
      Device: Samsung Galaxy S7 and LGG4

    • Story Points:
      8
    • Sprint:
      2017 Sprint 01 SDK

      Description

      Problem Description:

      When the parent is in horizontal layout and the right child's width is Ti.UI.FILL(occupying the available space left) with its height Ti.UI.SIZE to fit its content, some of the content is getting chopped off.

      Steps to Reproduce:

      Use the attached app (index.xml, index.js , index.tss) to reproduce the problem and see the behavior.

      Current Behavior:

      You can see that the layout in items 2, 4, 6, 8 and 10 is distorted because of which "ACKNOWLEDGE" portion is chopped off.

      Note: If 2 more characters are added to the text in these rows, layout will be adjusted properly. This says that the layout is getting distorted for specific number of characters.

      Expected Behavior:

      The goal is:

      -------------------------------

      Header1 Label1
        Label2
        Label3
        Label4

      -------------------------------

      Header2 Label1
        Label2
        Label3
        Label4

      -------------------------------

        Attachments

        1. fixed.jpg
          fixed.jpg
          273 kB
        2. horizontalWrapFalse.jpg
          horizontalWrapFalse.jpg
          275 kB
        3. horizontalWrapTrue.jpg
          horizontalWrapTrue.jpg
          277 kB
        4. index.js
          0.9 kB
        5. index.tss
          0.4 kB
        6. index.xml
          0.6 kB
        7. label.jpg
          label.jpg
          39 kB
        8. screenshot-1.png
          screenshot-1.png
          122 kB
        9. Screen Shot 2016-12-22 at 11.46.57 AM.png
          Screen Shot 2016-12-22 at 11.46.57 AM.png
          101 kB
        10. screenshot-2016-12-22-with-change.png
          screenshot-2016-12-22-with-change.png
          263 kB
        11. Screen Shot 2017-01-18 at 3.42.38 PM.png
          Screen Shot 2017-01-18 at 3.42.38 PM.png
          121 kB
        12. testcase.jpg
          testcase.jpg
          38 kB

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                nmishra Neeraj Mishra
                Reviewer:
                Maggie Chen
                Tester:
                Andy Waldman
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code