@citolab/qti-components 9.6.0 → 9.6.2
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/cdn/index.global.js +1 -1
- package/cdn/index.js +137 -134
- package/dist/{chunk-LOKULHVY.js → chunk-4HQML3K4.js} +5 -3
- package/dist/{chunk-LOKULHVY.js.map → chunk-4HQML3K4.js.map} +1 -1
- package/dist/{chunk-YS6CBO45.js → chunk-DG5PMMTM.js} +2 -2
- package/dist/{chunk-TC4257SG.js → chunk-FOXXE5BU.js} +3 -3
- package/dist/{chunk-EAQOUBXA.js → chunk-RGBQ65Y2.js} +15 -3
- package/dist/{chunk-EAQOUBXA.js.map → chunk-RGBQ65Y2.js.map} +1 -1
- package/dist/{chunk-TBJT7AGB.js → chunk-SUMSMTZJ.js} +2 -2
- package/dist/corrections.d.ts +1 -1
- package/dist/corrections.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -5
- package/dist/interactions.js +2 -2
- package/dist/qti-components-jsx.d.ts +1 -0
- package/dist/{qti-test.d-DOWT6YNa.d.ts → qti-test.d-ClQtDdgx.d.ts} +6 -1
- package/dist/test.d.ts +2 -2
- package/dist/test.js +4 -2
- package/package.json +2 -2
- /package/dist/{chunk-YS6CBO45.js.map → chunk-DG5PMMTM.js.map} +0 -0
- /package/dist/{chunk-TC4257SG.js.map → chunk-FOXXE5BU.js.map} +0 -0
- /package/dist/{chunk-TBJT7AGB.js.map → chunk-SUMSMTZJ.js.map} +0 -0
|
@@ -8813,7 +8813,6 @@ var QtiPortableCustomInteraction = class extends Interaction {
|
|
|
8813
8813
|
case "resize":
|
|
8814
8814
|
if (typeof data.height === "number" && this.iframe) {
|
|
8815
8815
|
this.iframe.style.height = `${data.height}px`;
|
|
8816
|
-
this.iframe.style.width = `${data.width}px`;
|
|
8817
8816
|
}
|
|
8818
8817
|
break;
|
|
8819
8818
|
case "console":
|
|
@@ -9450,6 +9449,8 @@ var QtiPortableCustomInteraction = class extends Interaction {
|
|
|
9450
9449
|
}
|
|
9451
9450
|
#pci-container {
|
|
9452
9451
|
width: 100%;
|
|
9452
|
+
/* Keeps the first and last child's margins inside, so scrollHeight is the full height. */
|
|
9453
|
+
display: flow-root;
|
|
9453
9454
|
}
|
|
9454
9455
|
qti-interaction-markup {
|
|
9455
9456
|
display: block;
|
|
@@ -10203,7 +10204,8 @@ var QtiPortableCustomInteraction = class extends Interaction {
|
|
|
10203
10204
|
let previousHeight = 0;
|
|
10204
10205
|
const notifyResize = () => {
|
|
10205
10206
|
const container = document.getElementById('pci-container');
|
|
10206
|
-
|
|
10207
|
+
// The content's own height (subpixel, rounded up) or what overflows it, e.g. an open popup.
|
|
10208
|
+
const newHeight = Math.max(Math.ceil(container.getBoundingClientRect().height), container.scrollHeight);
|
|
10207
10209
|
if (newHeight !== previousHeight) {
|
|
10208
10210
|
previousHeight = newHeight;
|
|
10209
10211
|
clearTimeout(resizeTimeout);
|
|
@@ -11975,4 +11977,4 @@ export {
|
|
|
11975
11977
|
elements31 as elements21,
|
|
11976
11978
|
qtiInteractionElements
|
|
11977
11979
|
};
|
|
11978
|
-
//# sourceMappingURL=chunk-
|
|
11980
|
+
//# sourceMappingURL=chunk-4HQML3K4.js.map
|