You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/04/17 00:56:17 UTC
[royale-asjs] branch develop updated: tour-de-jewel: use
list.scrollToIndex instead of old function
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 84ed13a tour-de-jewel: use list.scrollToIndex instead of old function
84ed13a is described below
commit 84ed13aa51d8b5237fa0a2aa360022de29b8f089
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Apr 17 02:56:13 2020 +0200
tour-de-jewel: use list.scrollToIndex instead of old function
---
examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml b/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml
index 0a9e3cd..6dff3d3 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml
@@ -27,7 +27,6 @@ limitations under the License.
<fx:Script>
<![CDATA[
import org.apache.royale.collections.ArrayList;
- import org.apache.royale.jewel.beads.controls.list.scrollToIndex;
import vos.IconListVO;
@@ -181,7 +180,7 @@ limitations under the License.
<j:HGroup gap="3" itemsVerticalAlign="itemsCenter">
<j:Label text="Scroll to index: "/>
- <j:NumericStepper valueChange="scrollToIndex(list1, event.target.value)" minimum="0" maximum="{(list1.dataProvider as ArrayList).length - 1}"/>
+ <j:NumericStepper valueChange="list1.scrollToIndex(event.target.value)" minimum="0" maximum="{(list1.dataProvider as ArrayList).length - 1}"/>
</j:HGroup>
</j:CardPrimaryContent>
<j:CardActions itemsHorizontalAlign="itemsRight">