Slide to position after last item of player_board
Posted: 24 January 2021, 14:42
Hi,
I'm wondering why my object does not end up in the same positon when doing
vs
With the first dojo.place it's placed after the last item in player_board, that makes sense to me. But with the second one it's place somewhere in the middle of the player_board, because I imagine like placeOnObject says, it places it just on the object 'player_board';
So what's the most elegant way to slide it to position after the last item in player_board?
Thanks a lot for your help!
I'm wondering why my object does not end up in the same positon when doing
Code: Select all
dojo.place( this.format_block('jstpl_cardwon',{player_id : player_id, turn : turn_id, x : 300}), 'player_board_' + player_id);Code: Select all
this.placeOnObject('cardwon_' + player_id + '_' + turn_id, 'player_board_' + player_id);
With the first dojo.place it's placed after the last item in player_board, that makes sense to me. But with the second one it's place somewhere in the middle of the player_board, because I imagine like placeOnObject says, it places it just on the object 'player_board';
So what's the most elegant way to slide it to position after the last item in player_board?
Thanks a lot for your help!