Просмотр исходного кода

revert a3d8b31c: browser limit is already scaled

...and I can't reproduce the original reported problem anymore
tophf 2 лет назад
Родитель
Сommit
a5ca15e265
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/popup/views/app.vue

+ 2 - 3
src/popup/views/app.vue

@@ -554,11 +554,10 @@ export default {
   mounted() {
   mounted() {
     focusMe(this.$el);
     focusMe(this.$el);
     keyboardService.enable();
     keyboardService.enable();
-    const rat = devicePixelRatio;
     this.$el.style.maxHeight = Math.min(
     this.$el.style.maxHeight = Math.min(
       // innerHeight may exceed 600px in a mobile browser which displays the popup as a fullscreen page
       // innerHeight may exceed 600px in a mobile browser which displays the popup as a fullscreen page
-      Math.max(600 / rat, innerHeight),
-      screen.availHeight - screenY - 8 / rat
+      Math.max(600, innerHeight),
+      screen.availHeight - screenY - 8
     ) + 'px';
     ) + 'px';
     this.disposeList = [
     this.disposeList = [
       keyboardService.register('escape', () => {
       keyboardService.register('escape', () => {