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

fix(remote-control): mouse events

master
Hristo Terezov 5 лет назад
Родитель
Сommit
5940f2890a
1 измененных файлов: 8 добавлений и 6 удалений
  1. 8
    6
      react/features/filmstrip/components/web/Filmstrip.js

+ 8
- 6
react/features/filmstrip/components/web/Filmstrip.js Просмотреть файл

@@ -161,14 +161,15 @@ class Filmstrip extends Component <Props> {
161 161
         // will get updated without replacing the DOM. If the known DOM gets
162 162
         // modified, then the views will get blown away.
163 163
 
164
-        const remoteVideosStyle = { };
164
+        const filmstripStyle = { };
165 165
         const filmstripRemoteVideosContainerStyle = {};
166 166
         let remoteVideoContainerClassName = 'remote-videos-container';
167 167
 
168 168
         switch (this.props._currentLayout) {
169 169
         case LAYOUTS.VERTICAL_FILMSTRIP_VIEW:
170
-            // Adding 8px for the 2px margins and 2px borders on the left and right. Also adding 7px for the scrollbar.
171
-            remoteVideosStyle.maxWidth = (interfaceConfig.FILM_STRIP_MAX_HEIGHT || 120) + 15;
170
+            // Adding 18px for the 2px margins, 2px borders on the left and right and 5px padding on the left and right.
171
+            // Also adding 7px for the scrollbar.
172
+            filmstripStyle.maxWidth = (interfaceConfig.FILM_STRIP_MAX_HEIGHT || 120) + 25;
172 173
             break;
173 174
         case LAYOUTS.TILE_VIEW: {
174 175
             // The size of the side margins for each tile as set in CSS.
@@ -184,13 +185,14 @@ class Filmstrip extends Component <Props> {
184 185
         }
185 186
 
186 187
         return (
187
-            <div className = { `filmstrip ${this.props._className}` }>
188
+            <div
189
+                className = { `filmstrip ${this.props._className}` }
190
+                style = { filmstripStyle }>
188 191
                 { this.props._filmstripOnly
189 192
                     ? <Toolbar /> : this._renderToggleButton() }
190 193
                 <div
191 194
                     className = { this.props._videosClassName }
192
-                    id = 'remoteVideos'
193
-                    style = { remoteVideosStyle }>
195
+                    id = 'remoteVideos'>
194 196
                     <div
195 197
                         className = 'filmstrip__videos'
196 198
                         id = 'filmstripLocalVideo'

Загрузка…
Отмена
Сохранить