Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25360] Android: Height Ti.UI.FILL inside ScrollView should match iOS

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-10-11T23:56:20.000+0000
Affected Version/sRelease 6.2.2
Fix Version/sRelease 6.3.0
ComponentsAndroid
Labelsconsider-6.2.3
ReporterGary Mathews
AssigneeJoshua Quick
Created2017-09-29T23:19:38.000+0000
Updated2017-10-23T21:08:05.000+0000

Description

A View with height Ti.UI.FILL inside a ScrollView, ListView or TableView should match iOS behavior (essentially acting like height: '100%') *TEST CASE*
var win = Ti.UI.createWindow({
        backgroundColor: 'white'
    }),
    scrollView = Ti.UI.createScrollView({
        layout: 'vertical'
    }),
    field = Ti.UI.createTextField({
        hintText: 'TEST',
        hintTextColor: 'grey',
        top: '250dp',
        left: '10%', right: '10%',
        backgroundColor: 'transparent',
        width: Titanium.UI.FILL
    }),
    view = Ti.UI.createView({
        width: Ti.UI.FILL,
        height: Ti.UI.FILL,
        backgroundColor: 'blue'
    });

scrollView.add([field, view]);

win.add(scrollView);
win.open();

Attachments

FileDateSize
HorizontalScrollFill-Bad.gif2017-10-09T18:10:57.000+0000340654
HorizontalScrollFill-Good.gif2017-10-09T18:10:57.000+0000377204
HorizontalScrollFillTest.js2017-10-09T18:10:57.000+00001190
VerticalScrollFill-Bad.png2017-10-09T18:02:29.000+000027101
VerticalScrollFill-Good.gif2017-10-09T18:02:29.000+0000361712
VerticalScrollFillTest.js2017-10-09T18:02:29.000+00001234

Comments

  1. Joshua Quick 2017-10-09

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/9513
  2. Lokesh Choudhary 2017-10-10

    FR Passed for master. Waiting for backport.
  3. Joshua Quick 2017-10-11

    PR (6.3.x): https://github.com/appcelerator/titanium_mobile/pull/9521
  4. Lokesh Choudhary 2017-10-11

    FR passed for backport. PR merged.
  5. Lokesh Choudhary 2017-10-23

    Verified the fix in SDK 7.0.0.v20171023120246 & 6.3.0.v20171018084007. Closing. Studio Ver: 4.10.0.201709271713 OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.3 Appc NPM: 4.2.10-2 Appc CLI: 6.3.0-master.15 Ti CLI Ver: 5.0.14 Alloy Ver: 1.10.6 Node Ver: 7.10.1 Java Ver: 1.8.0_101 Devices: ⇨ google Nexus 5 — Android 6.0.1 ⇨ google Pixel — Android 7.1.1

JSON Source