Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-371] Composite View Y Position [iPhone]

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:28:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
Reporterantt
AssigneeReggie Seagraves
Created2011-04-15T02:28:09.000+0000
Updated2017-03-09T21:16:05.000+0000

Description

have created a composite view with webviews
wanting scrollable page with custom header/footer
scrollable view centres to screen instead of using y value in setup object

eg.
var ViewBack = Titanium.UI.createWebView({url:'ViewBack.html'});
var ViewText = Titanium.UI.createWebView({url:'ViewText.html'});

var compositeViewAbout = Titanium.UI.createCompositeView();
compositeViewAbout.addView(ViewBack,{x:0,y:0,width:320,height:460,zIndex:1});
compositeViewAbout.addView(ViewText,{x:0,y:80,width:320,height:340,zIndex:2});

all works fine the ViewText view scrolls - just that ViewText view centres to screen - not at 80.
is there a way to resolve this?

Comments

  1. antt 2011-04-15

    ...worked it out!

    y value is ignored... top:80 works.

    any chance of documentation to show addView setup object options?
    this was by chance i tried top... turned out to be lucky.

    Titanium SDK 0.8.2
    iPhone SDK 3.0, 3.1. 3.1.2

  2. Blain Hamon 2011-04-15

    Changes in codebase has mooted this since then.

  3. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source