@oat-sa/tao-core-ui 3.18.3 → 3.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mediaplayer.js +9 -5
- package/package.json +1 -1
- package/scss/inc/_base.scss +22 -7
- package/src/css/basic.css +10 -1
- package/src/css/basic.css.map +1 -1
- package/src/mediaplayer.js +10 -4
package/src/mediaplayer.js
CHANGED
|
@@ -317,12 +317,18 @@ function mediaplayerFactory(config) {
|
|
|
317
317
|
this._initPlayer();
|
|
318
318
|
this._initSize();
|
|
319
319
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
this.resize(
|
|
320
|
+
if ($('body').hasClass('item-writing-mode-vertical-rl')) {
|
|
321
|
+
// Change size axis for vertical writing view mode
|
|
322
|
+
this.resize(this.config.height, this.config.width);
|
|
323
323
|
} else {
|
|
324
|
-
|
|
324
|
+
// Resize for old items with defined height to avoid big jump
|
|
325
|
+
if (this.config.height && this.config.height !== 'auto') {
|
|
326
|
+
this.resize('100%', 'auto');
|
|
327
|
+
} else {
|
|
328
|
+
this.resize(this.config.width, this.config.height);
|
|
329
|
+
}
|
|
325
330
|
}
|
|
331
|
+
|
|
326
332
|
this.config.is.rendered = true;
|
|
327
333
|
|
|
328
334
|
if (renderTo) {
|