Bugfix toolbar skeleton scale

This commit is contained in:
Alexander Yuzhin 2019-10-04 16:12:23 +03:00
parent 1abc2ae4fc
commit 11749376c4
6 changed files with 7 additions and 6 deletions

View file

@ -157,7 +157,7 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / (window.devicePixelRatio < 2 ? window.devicePixelRatio : window.devicePixelRatio / 2) + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },

View file

@ -158,7 +158,7 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / (window.devicePixelRatio < 2 ? window.devicePixelRatio : window.devicePixelRatio / 2) + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },

View file

@ -193,7 +193,7 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / (window.devicePixelRatio < 2 ? window.devicePixelRatio : window.devicePixelRatio / 2) + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },

View file

@ -195,7 +195,7 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / (window.devicePixelRatio < 2 ? window.devicePixelRatio : window.devicePixelRatio / 2) + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },

View file

@ -171,7 +171,7 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / (window.devicePixelRatio < 2 ? window.devicePixelRatio : window.devicePixelRatio / 2) + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },
@ -275,6 +275,7 @@
<script type="text/javascript">
window.g_debug_mode = true;
debugger;
</script>
<!-- debug begin -->

View file

@ -173,7 +173,7 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / (window.devicePixelRatio < 2 ? window.devicePixelRatio : window.devicePixelRatio / 2) + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },