@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.
@@ -317,12 +317,18 @@ function mediaplayerFactory(config) {
317
317
  this._initPlayer();
318
318
  this._initSize();
319
319
 
320
- // Resize for old items with defined height to avoid big jump
321
- if (this.config.height && this.config.height !== 'auto') {
322
- this.resize('100%', 'auto');
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
- this.resize(this.config.width, this.config.height);
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) {