Skip to content

Commit

Permalink
scaling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ondras committed Nov 6, 2019
1 parent fd56e25 commit 5c32c86
Show file tree
Hide file tree
Showing 3 changed files with 358 additions and 355 deletions.
1 change: 1 addition & 0 deletions js/scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const META = {
function sync() {
let port = [window.innerWidth, window.innerHeight];
if (port[1] == 767) { port[1] = 768; } // fix for lenovo x230
if (port[1] == 719) { port[1] = 720; } // fix for chuwi ubook

let style = getComputedStyle(root);
let target = ["width", "height"].map(prop => Number(style.getPropertyValue(`--${prop}`)));
Expand Down
Loading

0 comments on commit 5c32c86

Please sign in to comment.