Make the PC8080 prototype page more responsive
This commit is contained in:
parent
28e4eabd8d
commit
87d01130bd
5 changed files with 16 additions and 22 deletions
|
|
@ -49,7 +49,6 @@ if (NODE) {
|
|||
*
|
||||
* screenWidth: width of the screen canvas, in pixels
|
||||
* screenHeight: height of the screen canvas, in pixels
|
||||
* scale: true for font scaling, false (default) to center the display on the screen
|
||||
* aspect
|
||||
* rotate
|
||||
* addr
|
||||
|
|
@ -92,7 +91,7 @@ Video.init = function()
|
|||
return;
|
||||
}
|
||||
|
||||
eCanvas.setAttribute("class", PCJSCLASS + "-canvas");
|
||||
eCanvas.setAttribute("class", "pcjs-canvas");
|
||||
eCanvas.setAttribute("width", parmsVideo['screenWidth']);
|
||||
eCanvas.setAttribute("height", parmsVideo['screenHeight']);
|
||||
eCanvas.style.backgroundColor = parmsVideo['screenColor'];
|
||||
|
|
|
|||
|
|
@ -7245,7 +7245,7 @@ Video.init = function()
|
|||
return;
|
||||
}
|
||||
|
||||
eCanvas.setAttribute("class", PCJSCLASS + "-canvas");
|
||||
eCanvas.setAttribute("class", "pcjs-canvas");
|
||||
eCanvas.setAttribute("width", parmsVideo['screenWidth']);
|
||||
eCanvas.setAttribute("height", parmsVideo['screenHeight']);
|
||||
eCanvas.style.backgroundColor = parmsVideo['screenColor'];
|
||||
|
|
|
|||
|
|
@ -163,6 +163,7 @@
|
|||
<xsl:when test="@width">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$left != '' or $top != ''">width:<xsl:value-of select="@width"/>;</xsl:when>
|
||||
<xsl:when test="@pos = 'left' or @pos = 'right'">width:<xsl:value-of select="@width"/>;max-width:<xsl:value-of select="@width"/>;</xsl:when>
|
||||
<xsl:otherwise>width:auto;max-width:<xsl:value-of select="@width"/>;</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
|
|
|
|||
Loading…
Reference in a new issue