-
-
Save grantges/ffbb0771adf091d15941 to your computer and use it in GitHub Desktop.
Odd behavior with ScrollableView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var interMediateStop = 3; | |
var _menuOptionWidth = 0; | |
var diamention = 0; | |
function onScrollCurrentPosition(e) { | |
//$.dottedCurrentMarker.left = (e.currentPageAsFloat * _menuOptionWidth); | |
} | |
$.index.open(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
".container": { | |
backgroundColor:"white", | |
layout : "vertical" | |
} | |
"Label": { | |
width: Ti.UI.SIZE, | |
height: Ti.UI.SIZE, | |
color: "#000" | |
} | |
"#scrollableView": { | |
width: Ti.UI.FILL, | |
height: Ti.UI.SIZE, | |
top : "30dip" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Alloy> | |
<Window class="container"> | |
<View id="view1" pageId="1" backgroundColor="red" width="90%" height="Ti.UI.SIZE"> | |
<Label height="Ti.UI.SIZE">View 1</Label> | |
</View> | |
<ScrollableView id="scrollableView" onScroll="onScrollCurrentPosition"> | |
<View id="view1" pageId="1" backgroundColor="red" width="90%" height="100"> | |
<Label height="Ti.UI.SIZE">View 1</Label> | |
</View> | |
<View id="view2" pageId="2" backgroundColor="green" width="90%" height="Ti.UI.SIZE"> | |
<Label>View 2</Label> | |
</View> | |
<View id="view3" pageId="3" backgroundColor="blue" width="90%" height="Ti.UI.SIZE"> | |
<Label>View 3</Label> | |
</View> | |
<View id="view4" pageId="4" backgroundColor="yellow" width="90%" height="Ti.UI.SIZE"> | |
<Label>View 4</Label> | |
</View> | |
</ScrollableView> | |
</Window> | |
</Alloy> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment