Page 1 of 1

Playerboard panel 'left' problem

Posted: 23 March 2016, 16:51
by Rudolf
Hi...
on the game : http://fr.1.studio.boardgamearena.com/d ... able=29339
I've got a problem with "playerboard panel".
Left seems not to be taken into account..; I cannot put cards from left to right inside:
(pb_media_..._0 near pb_media_..._1 and pb_media_..._2)

in tpl file:

Code: Select all

var jstpl_player_board = '\
    <div id="pb_div_${playercolor}">\
        <p>\
        <span id="pb_atk_${playercolor}"  style="color:${gamecolor}; text-align:center; font-weight:bold"  >ATK: +</span>\
        <span id="pb_pot_${playercolor}"  style="color:black; text-align:center; font-weight:bold">0</span>\
        <span id="pb_bns_${playercolor}"  style="color:${gamecolor}; text-align:center; font-weight:bold"  > BNS: +</span>\
        <span id="pb_potbns_${playercolor}"  style="color:black; text-align:center; font-weight:bold">0</span>\
        <span id="pb_potsub_${playercolor}"  style="color:#DAB30A; text-align:center; font-weight:bold"></span>\
        <div id="pb_media_${playercolor}_0" position="absolute"> </div>\
        <div id="pb_media_${playercolor}_1" position="absolute"> </div>\
        <div id="pb_media_${playercolor}_2" position="absolute"> </div>\
        <div id="pb_media_${playercolor}_3" position="absolute"> </div>\
    </div>';

in js file:

Code: Select all

dojo.place( this.format_block( 'jstpl_'+material, { id: cid, subid: csubid } ) , $(dest)); // Materiel comes from card div Draw the cards.
            $calc= this.cleanInt(index) * 54;
            dojo.style($(dest),'height','152px');
            dojo.style($(dest),'width','50px');
            dojo.style($(dest),'left',$calc+'px'); 
I verified with Firebug, "left" is present in div with correct pixel number :< .

thanks for help, rudolf

Re: Playerboard panel 'left' problem

Posted: 23 March 2016, 22:48
by Rudolf
It's solved.
need to place a 'top' or 'bottom' with to work...