Titanium JIRA Archive
Appcelerator Community (AC)

[AC-862] Window: Setting the height to Ti.UI.SIZE does not fit to content

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-12-27T06:00:57.000+0000
Affected Version/sAppcelerator Studio 4.4.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelswindows, windows8.1, windows_phone
ReporterLuca Sartori
AssigneeSharif AbuDarda
Created2015-12-18T11:08:40.000+0000
Updated2016-03-08T07:37:09.000+0000

Description

When i set Ti.UI.SIZE to components as InputText, ScrollView, Label...the content is truncate. See pics. To view the content correctly i must explicit set the height. But in dynamic element as ScrollView if i change the height programmaticaly the windows not refresh the new layout height. To help to reproduce the problem i have attacched the following files: views/example.xml styles/example.tss assets/windows/images/welcome.png Thank you Luca

Attachments

FileDateSize
example.tss2015-12-18T11:10:35.000+00001397
example.xml2015-12-18T11:10:35.000+00001166
screen_android.jpg2015-12-18T11:10:36.000+000061219
screen_windows.jpg2015-12-18T11:10:36.000+000036500
welcome.png2015-12-18T11:10:36.000+000048447

Comments

  1. Sharif AbuDarda 2015-12-22

    Hello, label has a default SIZE behavior. So you don't need to SIZE the width. In the case of ScrollView, contentWidth and contentHeight may also be set to "auto" or Ti.UI.SIZE, and in those cases, this is the expected behavior: 1. When all children views have FILL behavior, the content area of the scroll view will be clipped to the physical size of the scroll view 2. Otherwise, the content area will grow according to the bottom offset of the bottom-most View and the right offset of right-most View. In some cases the bottom-most and right-most View may be the same View. For more info on the layout and positioning please follow these doc links 1. [Link1](http://docs.appcelerator.com/platform/latest/#!/guide/Layouts,_Positioning,_and_the_View_Hierarchy). 2. [Link2](http://docs.appcelerator.com/platform/latest/#!/guide/Alloy_Concepts). Thanks.

JSON Source