[TIMOB-23564] Windows: paging in ScrollableView not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | ScrollableView, Windows, Windows-Phone |
Reporter | Niels Kok |
Assignee | Unknown |
Created | 2016-06-23T15:06:07.000+0000 |
Updated | 2018-02-28T19:55:37.000+0000 |
Description
A ScrollableView on Windows acts more like a horizontal ScrollView. There is no paging like on Android and iOS. When you log the currentPage of the ScrollableView, it always returns 0.
index.xml
<Alloy>
<Window>
<ScrollableView id="pageContainer">
<View backgroundColor="red" onSingletap="logCurrentPage">
<Label>Page 1</Label>
</View>
<View backgroundColor="orange" onSingletap="logCurrentPage">
<Label>Page 2</Label>
</View>
</ScrollableView>
</Window>
</Alloy>
index.js
function logCurrentPage() {
Ti.API.info($.pageContainer.getCurrentPage());
}
$.index.open();
Hello, Tested the issue with the sample code provided by the reporter and got the same behavior. Here are the details: *Test code:* Reporter's sample code *Test Steps:* 1.Create an alloy project 2.Copy sample code into app.js and run it on windows device 3. Single tap on page 1 and page 2 and got currentPage of the scrollableView always returns 0. *Test Environment:* Microsoft Windows 8.1 Enterprise N, Windows phone – 8.1 Appcelerator Command-Line Interface, version 5.2.2 Appcelerator Studio, build: 4.5.0.201602170821 Node.js Version = 0.12.7,npm Version = 2.11.3 Titanium SDK 5.2.2.GA *Test Result:* Check this [link ](https://i.imgsafe.org/f62f7d45f9.png).