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

iOS: View sizes are incorrect in 6.1.0.GA (regression)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0
    • Fix Version/s: Release 6.1.1
    • Component/s: iOS
    • Environment:

      Titanium SDK 6.1.0.GA
      Blank Alloy Project

    • Sprint:
      2017 Sprint 12 SDK

      Description

      After updating to 6.1.0.GA my apps are calculating percentages of views incorrectly.
      If I have a view with horizontal layout and I create a child Label with let's say 90% of width, it will be wrapped to the next line and use way more than 90% of width.

      Example:

      index.xml

      <Alloy>
      	<Window id="container" layout="vertical">
      		<View id="row">
      			<View id="vwCheck"></View>
      			<View id="vwLabel">
      				<Label id="lbl">This is a test label</Label>
      			</View>
      		</View>
      	</Window>
      </Alloy>
      

      index.tss

      "#row": {
          top: '50%',
          borderWidth: 1,
          width: '95%',
          right: 0,
          height: 50,
          layout: "horizontal"
      }
       
      "#vwCheck": {
          borderWidth: 1,
          height: Ti.UI.FILL,
          width: 44
      }
       
      "#lbl": {
          width: '100%',
          borderWidth: 1,
          minimumFontSize: 16,
          left: 0,
          font: {
              fontSize: '20dp',
          }
      }
      

      Expected result (Works on 6.0.2.GA):

      Actual result (On 6.1.0.GA):

      Setting my label width to 87% produces (6.1.0.GA):

      And setting the label width to 88% (6.1.0.GA):

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vijaysingh Vijay Singh
                Reporter:
                rdperottoni Rodolfo Perottoni
                Reviewer:
                Hans Knöchel
                Tester:
                Harry Bryant
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration