Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1591] 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-14T08:59:34.000+0000
Affected Version/sAppcelerator Studio 4.4.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelswindows, windows8.1, windows_phone
ReporterLuca Sartori
AssigneeRadamantis Torres-Lechuga
Created2015-12-12T12:44:45.000+0000
Updated2016-03-08T07:38:04.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.

Attachments

FileDateSize
example.tss2015-12-15T20:49:54.000+00001397
example.xml2015-12-15T20:49:54.000+00001166
screen_android.jpg2015-12-12T12:44:31.000+000061219
screen_windows.jpg2015-12-12T12:44:31.000+000036500
welcome.png2015-12-15T20:50:53.000+000048447

Comments

  1. Jebun Naher 2015-12-13

    Hello, It would be helpful to get a test case that demonstrates this problem. We have not been able to reproduce this issue on our end. Sample test case that we tried:
       var win = Ti.UI.createWindow({
         backgroundColor: 'white'
       });
       var view=Ti.UI.createView({
       	height:100,
       	width:200,
       	backgroundColor:"red"
       });
       var label1 = Ti.UI.createLabel({
         color: '#900',
         text: 'A simple label, focus to to view is the label text is truncated',
         width: Ti.UI.SIZE, 
         height: Ti.UI.SIZE
       });
       view.add(label1);
       win.add(view);
       win.open();
       
    *Testing Environment:* Operating System Name = Microsoft Windows 8.1 Enterprise Version = 6.3.9600 Architecture = 32bit CPUs = 4 Memory = 3.9GB Node.js Node.js Version = 0.12.7 npm Version = 2.11.3 Appcelerator CLI Installer = 4.2.2 Core Package = 5.1.0 Titanium CLI CLI Version = 5.0.5 node-appc Version = 0.2.31 Java Development Kit Version = 1.7.0_80 Thanks.
  2. Luca Sartori 2015-12-15

    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

JSON Source