Skip to content

Commit

Permalink
Merge pull request #2560 from oat-sa/backport/AUT-3785/broken-PCI-aut…
Browse files Browse the repository at this point in the history
…horing

Backport/AUT-3785/broken PCI authoring
  • Loading branch information
jsconan authored Aug 16, 2024
2 parents 5513454 + 4d533c8 commit 91b12cb
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion views/css/item-creator.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/css/item-creator.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/js/loader/qtiLoader.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/js/loader/taoQtiItem.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/js/loader/taoQtiItem.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/js/loader/taoQtiItemRunner.es5.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/js/loader/taoQtiItemRunner.min.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions views/js/qtiCreator/editor/gridEditor/resizable.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ define([
$el.find('[class^="col-"], [class*=" col-"]').each(function () {
let $col = $(this);

// Skip if the element is inside a PCI.
// In this case, this is most probably a custom style rather than a TAO controlled grid.
if ($col.closest('.qti-customInteraction').length) {
return true;
}

//@todo this should be more generic
//see draggable etc for more references
if ($col.parent().hasClass('fixed-grid-row')) {
Expand Down
11 changes: 11 additions & 0 deletions views/scss/item-creator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,17 @@ img.dragging.ui-draggable-dragging {
direction: rtl;
}
}
body, #mediaManager {
// Enforces the style for modal elements.
// This is necessary to avoid conflicts with PCI styles.
& > .modal {
z-index: 105002;
height: auto;
}
& > .modal-bg {
z-index: 100001;
}
}
#mediaManager {
.file-preview {
.previewer {
Expand Down

0 comments on commit 91b12cb

Please sign in to comment.