@oat-sa/tao-core-ui 3.18.4 → 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.
@@ -352,12 +352,16 @@ define(['jquery', 'lodash', 'async', 'util/urlParser', 'core/dataProvider/reques
352
352
  this._playingState(false, true);
353
353
  this._initPlayer();
354
354
  this._initSize();
355
-
356
- // Resize for old items with defined height to avoid big jump
357
- if (this.config.height && this.config.height !== 'auto') {
358
- this.resize('100%', 'auto');
355
+ if ($$1('body').hasClass('item-writing-mode-vertical-rl')) {
356
+ // Change size axis for vertical writing view mode
357
+ this.resize(this.config.height, this.config.width);
359
358
  } else {
360
- this.resize(this.config.width, this.config.height);
359
+ // Resize for old items with defined height to avoid big jump
360
+ if (this.config.height && this.config.height !== 'auto') {
361
+ this.resize('100%', 'auto');
362
+ } else {
363
+ this.resize(this.config.width, this.config.height);
364
+ }
361
365
  }
362
366
  this.config.is.rendered = true;
363
367
  if (renderTo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oat-sa/tao-core-ui",
3
- "version": "3.18.4",
3
+ "version": "3.18.5",
4
4
  "displayName": "TAO Core UI",
5
5
  "description": "UI libraries of TAO",
6
6
  "scripts": {
@@ -702,6 +702,8 @@ body {
702
702
  .qti-item .writing-mode-vertical-rl .qti-object-container.previewer:has(.mediaplayer) {
703
703
  writing-mode: horizontal-tb;
704
704
  direction: rtl;
705
+ height: 100%;
706
+ width: auto;
705
707
 
706
708
  .mediaplayer .controls {
707
709
  display: inline-block;
package/src/css/basic.css CHANGED
@@ -1651,6 +1651,8 @@ html .qti-item .writing-mode-vertical-rl .media-container,
1651
1651
  html .qti-item .writing-mode-vertical-rl .qti-object-container.previewer:has(.mediaplayer) {
1652
1652
  writing-mode: horizontal-tb;
1653
1653
  direction: rtl;
1654
+ height: 100%;
1655
+ width: auto;
1654
1656
  }
1655
1657
  html .qti-item .writing-mode-vertical-rl .media-container .mediaplayer .controls,
1656
1658
  html .qti-item .writing-mode-vertical-rl .qti-object-container.previewer:has(.mediaplayer) .mediaplayer .controls {