Project: titanium
Issue TIMOB-20460: Windows: ScrollableView does not respect `top` property on views
{{ScrollableView}} should respect {{top}} property on child views. {code:javascript} var win = Ti.UI.createWindow({ backgroundColor: "#7B6700", layout: "vertical" }); var NavBarView = Ti.UI.createView({ height: "25", top: 0, backgroundColor: "green", width: "100%" }); var scrollView = Ti.UI.createScrollableView({ height: '50%', width: Ti.UI.FILL, scrollType: "vertical", layout: "vertical", backgroundColor: "gray" }); var view1 = Ti.UI.createView({ backgroundColor:'white', top: 20, left: 20 }); var button = Ti.UI.createButton({ title: "Click", width: "100", height: "50", backgroundColor: 'blue', top: 20, left: 20 }); view1.add(button); scrollView.views = [ view1 ]; win.add(NavBarView); win.add(scrollView); scrollView.addEventListener("postlayout", function (e) { Ti.API.info(JSON.stringify(button.rect)); }); win.open(); {code}
Story points: 5