Page 1 of 1

[Beye] Player Panel... adding something.

Posted: 03 April 2013, 22:29
by Rudolf
Hi evrybody,

I need some help to understand player panel.
I added this
in game.tpl

Code: Select all

var jstpl_player_board =  '<div class="cp_board"><div id="icon_p${id}" class="mshow stylemovecard"></div></div>';
in game.js

Code: Select all

var player_board_div = $('player_board_'+player_id);
dojo.place( this.format_block('jstpl_player_board', player ), player_board_div );

I would like to know how I can have size of player panel growing according to size of my picture....
right now, it's putat the end of panel and size do't change.
I thought that picture was inserted inside...
And I would like it to be inserted inside :)
maybe cause of z_index?
maybe this example could be written in the doc in the section Player Panel?
How to resize player panel...

Re: [Beye] Player Panel... adding something.

Posted: 04 April 2013, 13:03
by sourisdudesert
Hello,

Player panel is a standard <div>, that fit to size of its content. If you test with simple text you can check this.

If you are using absolute positioned content, you must wrap it into some content that is not in order the container can adapt its size.

Cheers,

Re: [Beye] Player Panel... adding something.

Posted: 04 April 2013, 16:47
by Rudolf
Thanks.