Browse Source

revert a3d8b31c: browser limit is already scaled

...and I can't reproduce the original reported problem anymore
tophf 2 years ago
parent
commit
a5ca15e265
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/popup/views/app.vue

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

@@ -554,11 +554,10 @@ export default {
   mounted() {
     focusMe(this.$el);
     keyboardService.enable();
-    const rat = devicePixelRatio;
     this.$el.style.maxHeight = Math.min(
       // 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';
     this.disposeList = [
       keyboardService.register('escape', () => {