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

iOS Layout: Views wrap while their total width % equals 100

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      SDK 5.1.0.RC (also older)
      iOS 9.1 Simulator (also older and on device)

    • Story Points:
      0
    • Sprint:
      2018 Sprint 15 SDK

      Description

      The following sample and attached screenshots show that while 4 * 25% = 5 * 20% = 100% the last view is wrapped on iOS. On Android it works as expected.

      Enabling auto-layout doen't affect the issue.

      Example

      <Alloy>
      	<Window layout="vertical" backgroundColor="white">
      		<View layout="horizontal" height="Ti.UI.SIZE">
      			<View width="25%" height="100" backgroundColor="red" />
      			<View width="25%" height="100" backgroundColor="green" />
      			<View width="25%" height="100" backgroundColor="red" />
      			<View width="25%" height="100" backgroundColor="green" />
      		</View>
      		<View layout="horizontal" height="Ti.UI.SIZE">
      			<View width="20%" height="100" backgroundColor="red" />
      			<View width="20%" height="100" backgroundColor="green" />
      			<View width="20%" height="100" backgroundColor="red" />
      			<View width="20%" height="100" backgroundColor="green" />
      			<View width="20%" height="100" backgroundColor="red" />
      		</View>
      	</Window>
      </Alloy>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fokkezb Fokke Zandbergen
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration