[TIMOB-25360] Android: Height Ti.UI.FILL inside ScrollView should match iOS
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-10-11T23:56:20.000+0000 |
| Affected Version/s | Release 6.2.2 |
| Fix Version/s | Release 6.3.0 |
| Components | Android |
| Labels | consider-6.2.3 |
| Reporter | Gary Mathews |
| Assignee | Joshua Quick |
| Created | 2017-09-29T23:19:38.000+0000 |
| Updated | 2017-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
| File | Date | Size |
|---|---|---|
| HorizontalScrollFill-Bad.gif | 2017-10-09T18:10:57.000+0000 | 340654 |
| HorizontalScrollFill-Good.gif | 2017-10-09T18:10:57.000+0000 | 377204 |
| HorizontalScrollFillTest.js | 2017-10-09T18:10:57.000+0000 | 1190 |
| VerticalScrollFill-Bad.png | 2017-10-09T18:02:29.000+0000 | 27101 |
| VerticalScrollFill-Good.gif | 2017-10-09T18:02:29.000+0000 | 361712 |
| VerticalScrollFillTest.js | 2017-10-09T18:02:29.000+0000 | 1234 |
PR (master): https://github.com/appcelerator/titanium_mobile/pull/9513
FR Passed for master. Waiting for backport.
PR (6.3.x): https://github.com/appcelerator/titanium_mobile/pull/9521
FR passed for backport. PR merged.
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