Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23384] Windows: Elements inside a ScrollView are centered.

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2016-05-26T14:07:02.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sn/a
ComponentsWindows
Labelsqe-5.3.0, qe-5.4.0
ReporterJosh Longton
AssigneeGary Mathews
Created2016-05-16T18:57:45.000+0000
Updated2016-10-06T06:47:56.000+0000

Description

Elements inside a ScrollView are always centered. *Steps to reproduce:*

Use the app.js below.

*app.js*
var win = Ti.UI.createWindow({ backgroundColor: 'green' });
 
var scrollView = Ti.UI.createScrollView({
    layout: "vertical",
    backgroundColor: 'orange',
    top: 0,
});
 
var view = Ti.UI.createView({
    backgroundColor: 'yellow',
    top: 10,
    left: 10,
    height: Ti.UI.SIZE,
    width: Ti.UI.SIZE,
});
 
var label = Ti.UI.createLabel({
    left: 10,
    right: 10,
    color: "blue",
    text: "this is test text"
});
 
view.add(label);
 
scrollView.add(view);
win.add(scrollView);
win.open();
*Actual :* !windows 10 scrollView.png|thumbnail! *Expected:* !android scrollView.png|thumbnail!

Attachments

FileDateSize
android scrollView.png2016-05-16T18:55:56.000+000010785
windows 10 scrollView.png2016-05-16T18:56:12.000+000018792

Comments

  1. Gary Mathews 2016-05-26

    Duplicate issue fixed by TIMOB-23350
  2. Harry Bryant 2016-06-27

    Verified as fixed, as part of TIMOB-23350 . Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.7.0.201606220541 Ti SDK: 5.4.0.v20160617074028 Appc NPM: 4.2.7-2 Appc Core: 5.4.0-18 Node: v4.4.4 *Closing Ticket.*

JSON Source