Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26525] Windows: ScrollView does not expand with Ti.UI.SIZE

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-11-09T18:27:25.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sRelease 7.5.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2018-11-07T07:07:42.000+0000
Updated2018-11-12T11:53:11.000+0000

Description

ScrollView does not expand its size along with child content when Ti.UI.SIZE is specified.
var scrollView = Ti.UI.createScrollView({
    height: Ti.UI.SIZE,
    width: Ti.UI.SIZE,
    scrollType: 'vertical',
    layout: 'vertical',
    backgroundColor: 'red'
});

var view1 = Ti.UI.createView({
        width: '100',
        height: '50',
        backgroundColor: 'pink'
});

var view2 = Ti.UI.createView({
    width: '200',
    height: '100',
    backgroundColor: 'green'
});

scrollView.add(view1);
scrollView.add(view2);

var win = Ti.UI.createWindow({
    backgroundColor: 'white',
});
win.add(scrollView);
win.open();
Expected: !1.png|thumbnail!

Attachments

FileDateSize
1.png2018-11-07T07:07:13.000+00002040

Comments

  1. Kota Iguchi 2018-11-07

    https://github.com/appcelerator/titanium_mobile_windows/pull/1312
  2. Keerthi Mahalingam 2018-11-07

    FR Passed
  3. Samir Mohammed 2018-11-12

    Verified fix in SDK version 8.0.0.v20181109074008 and 7.5.0.v20181109170739. Test and other information can be found at: Master: https://github.com/appcelerator/titanium_mobile_windows/pull/1313 7_5_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1312

JSON Source