Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
Update CalendarDesigner.html
Browse files Browse the repository at this point in the history
Math fix to previous checkin.
  • Loading branch information
Mark Greenwald authored and Mark Greenwald committed Mar 15, 2022
1 parent 0e0391f commit 01a14b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions samples/CalendarDesigner.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
background-repeat: no-repeat;
background-size: 100vmax auto;
}
@media (min-width: 129.411764705882307vmin /* calc(var(--portrait-limit)*100vmin) */ ) {
@media (min-width: /* calc(var(--portrait-limit)*100vmin) */ 129.411764705882307vmin) {
html { font-size: 1vmin; }
body {
width: calc(var(--portrait-limit)*100vmin); height: 100vmin;
Expand Down Expand Up @@ -668,10 +668,10 @@ <h1>
inches: `11x${formatNumber(11*ratio)}`,
},
grid: {
top: `${formatNumber(caltop.y/page.height*100)}%`,
bottom: `${formatNumber(calbottom.bottom/page.height*100)}%`,
left: `${formatNumber(caltop.x/page.width*100)}%`,
right: `${formatNumber(caltop.right/page.width*100)}%`
top: `${formatNumber((caltop.y-page.y)/page.height*100)}%`,
bottom: `${formatNumber((calbottom.height-page.y)/page.height*100)}%`,
left: `${formatNumber((caltop.x-page.x)/page.width*100)}%`,
right: `${formatNumber((caltop.right-page.x)/page.width*100)}%`
}
})
})();
Expand Down

0 comments on commit 01a14b1

Please sign in to comment.