Iframe resizer for standalone interactives

11 views
Skip to first unread message

Oscar Levin

unread,
Oct 31, 2025, 1:48:56 PMOct 31
to PreTeXt development
Tien noticed in his Linear Optimization book that Doenet interactives look great in the regular HTML, but when he opens the standalone page from the pdf (via a link or qrcode), the standalone page does not resize the doenet.  I'm guessing that the javascript that does the resizing isn't being loaded on that page?

Live examples

Any ideas where I should look? 

Andrew Scholer

unread,
Oct 31, 2025, 2:01:05 PMOct 31
to prete...@googlegroups.com
For non-webwork interactives, that is controlled by code in `lti_iframe_resizer.js`

That is added to pages with the `lti-iframe-resizer` template.

There are a couple different tiers of includes added to HTML files. In `<xsl:template match="*" mode="standalone-page">`, standalone pages get the stuff in `$file-wrap-basic-head-cache`. Either that needs to get changed to `$file-wrap-simple-head-cache` (looks like most of that would be good to have) or, `lti-iframe-resizer` needs to get added to what is in the basic-head-cache (and removed from the tiers that build on that.

--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/ed6dbc5c-9647-4a47-83b4-316ff7c45f68n%40googlegroups.com.

Oscar Levin

unread,
Oct 31, 2025, 2:16:56 PMOct 31
to prete...@googlegroups.com
Awesome.  I'll try to work on that this weekend.

Reply all
Reply to author
Forward
0 new messages