מדיה ויקי:Gadget-pgnviewer.js: הבדלים בין גרסאות בדף

collapse is not supported any more
ניסוי
שורה 168: שורה 168:
this.relocateLegends();
this.relocateLegends();
},
},
setWidth: function(width) {
setWidth: function() {
width = width || this.blockSize;
width = width || this.blockSize;
var
var
widthPx = width * 8,
widthPx = width * 8,
widthPxPlus = widthPx + 40,
widthPxPlus = widthPx + 40;
widthPxPlusPlus = widthPx + 80;
this.tabberDiv // disgusting, but i could not get heightStyle of jquery tabs to do what i need.
this.tabberDiv // disgusting, but i could not get heightStyle of jquery tabs to do what i need.
.css( { height: widthPxPlus } )
.css( { height: widthPxPlus } )
.find( 'div' ).css( { height: widthPx - 20 } );
.find( 'div' ).css( { height: mobile ? widthPxPlus : widthPx - 20 } );
this.blockSize = width;
this.blockSize = width;
this.boardImg.css({width: widthPx, height: widthPx});
this.boardImg.css({width: widthPx, height: widthPx});