@@ -115,7 +115,7 @@ function PatchSVG()
Core(HandScope);
Core(DeckScope);
- $svg.attr({preserveAspectRatio:"xMidYMin meet",class:"svg"});
+ $svg.attr({preserveAspectRatio:"xMidYMin meet",class:"svg",width:"100%",height:"100%"});
}
function onPlayerInfo(evt) {
@@ -4,9 +4,6 @@ function DragScope(scope) {
{
sizeX = $svg[0].viewBox.baseVal.width / innerWidth;
sizeY = $svg[0].viewBox.baseVal.height / innerHeight;
- $page = $("#Page-1");
- sizeX = $page[0].width / innerWidth;
- sizeY = $page[0].height / innerHeight;
size = Math.max(sizeX, sizeY) || 1;