Hello, is it expected that the animateShowEffect and animateHideEffect settings are ignored when calling layout.showMember(member) or layout.hideMember(member)?
I tried modifying the animateLayout sample to test this behaviour. Here's the code:
However, the effect always appears to be a default slide, regardless of the animateShowEffect or animateHideEffect settings. Is there a way to customize the animation when using showMember / hideMember (or layout.setVisibleMember(member))?
I tried modifying the animateLayout sample to test this behaviour. Here's the code:
Code:
isc.defineClass("StarImg", "Img").addProperties({
width:48, height:48,
layoutAlign:"center",
appImgDir:"pieces/48/"
})
isc.HStack.create({
ID:"starsLayout",
top:50, membersMargin:10, layoutMargin:10, showEdges:true,
animateMembers:true,
animateShowEffect:"fade",
animateHideEffect:"fade",
members:[
isc.StarImg.create({src:"star_blue.png"}),
isc.StarImg.create({src:"star_green.png", ID:"greenStar"}),
isc.StarImg.create({src:"star_yellow.png"})
]
})
isc.IButton.create({
title:"Hide",
icon:"pieces/16/star_green.png",
iconOrientation:"right",
click: "starsLayout.hideMember(greenStar)"
})
isc.IButton.create({
title:"Show", left:120,
icon:"pieces/16/star_green.png",
iconOrientation:"right",
click: "starsLayout.showMember(greenStar)"
})
Comment