Commit 36ccdee2 authored by 李维's avatar 李维

Bug fix

parent 7c4d590c
......@@ -955,8 +955,8 @@ export class PlayComponent implements OnInit, OnDestroy {
});
console.log("totalWidth: ", totalWidth)
let fontSize = 50;
if(totalWidth > 1920){
fontSize = 50 * (1920 / (totalWidth)) * 0.7
if(totalWidth > this.g_canvasWidth){
fontSize = 50 * (this.g_canvasWidth / (totalWidth)) * 0.7
}
cardAll.forEach((card, index)=>{
card.fontSize = fontSize
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment