liuyu 4 vuotta sitten
vanhempi
commit
c938aa36e2
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/views/live/roomDetail.vue

+ 3 - 1
src/views/live/roomDetail.vue

@@ -777,7 +777,6 @@ export default {
       if (!this.isscreen) {
         console.log('全屏');
         this.isscreen = true;
-        this.oheight = height;
         const transformid_ = document.getElementById('transformid');
         let style = 'width:' + height + 'px;';
         style += 'height:' + width + 'px;';
@@ -796,12 +795,15 @@ export default {
           this.lheight = `${width - 70}px`;
           this.rheight = `${width - 70}px`;
           this.otheheight = '70px';
+          this.oheight = `${width - 70}px`;
         } else {
           this.vheight = `${width}px`;
           this.vwidth = `${height}px`;
           this.lheight = `${width}px`;
           this.rheight = `${width}px`;
+          this.oheight = `${width}px`;
           this.otheheight = '0px';
+          this.othepadding = `${width}px 0 0 0`;
         }
 
         this.btop = `${height - 40}px`;