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

TextArea set to FILL not wrapping correctly inside a horizontal layout with another sibling

    Details

    • Story Points:
      13
    • Sprint:
      2017 Sprint 17 SDK

      Description

      Create a view with horizontal layout. Make two siblings (a view, or anything else), and a TextArea set to FILL.

      Enter an amount of text into the TextArea that it must wrap <b>but would not have wrapped if the other sibling wasn't there</b>.

      The text correctly wraps but the TextArea itself does not adjust height.

      This is a different symptom but may be related to TC-4810.

      See example below (tried this on an HTC One, for screen size reference):

      <Alloy>
      	<Window class="container" id="skin" layout="vertical">
      		<View layout="vertical" height="Ti.UI.FILL" width="Ti.UI.FILL">
      			<View height="Ti.UI.SIZE" width="Ti.UI.FILL" layout="horizontal">
      			 	<View height="10dp" width="100dp" backgroundColor="red" />
      			 	<TextArea value="Test that won't adjust its height." width="Ti.UI.FILL" backgroundColor="blue" height="Ti.UI.SIZE"/>
      			</View>
      			<View height="Ti.UI.SIZE" width="Ti.UI.FILL" layout="horizontal">
      			 	<View height="10dp" width="100dp" backgroundColor="red" />
      				<TextArea value="Test that will adjust height. Would have wrapped." width="Ti.UI.FILL" backgroundColor="blue" height="Ti.UI.SIZE"/>
      			</View>
      		</View>
      	</Window>
      </Alloy>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                timkellypa Tim Kelly
                Tester:
                Abir Mukherjee
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code