You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/guide/publisher/publication-file.xml
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -917,6 +917,35 @@
917
917
</cd>
918
918
element can have an attribute <attr>design-width</attr> with an integer value. This will be used as the base value for converting the percentage based widths of an interactive into a pixel values when that is required. The default value is <c>600</c> (100% width is 600px).
919
919
</p>
920
+
921
+
<p>
922
+
The
923
+
<cd>
924
+
<cline>/publication/html/interactives</cline>
925
+
</cd>
926
+
element can have an attribute <attr>resize-behavior</attr> that is used to control how interactives respond to window resizing. Possible values are:
927
+
<ul>
928
+
<li><c>fixed-height</c> (default): interactives will maintain their initial height as the window size changes. When the content becomes too wide to display, a horizontal scrollbar will appear.</li>
929
+
<li><c>responsive</c>: interactives will resize dynamically as the window size changes to maintain their aspect ratio.</li>
930
+
</ul>
931
+
In addition to this global setting, you can add child elemements to
932
+
<cd>
933
+
<cline>/publication/html/interactives</cline>
934
+
</cd>
935
+
to set the resize behavior for specific types of interactives. Each child element should be named after the interactive type (e.g. <c>geogebra</c> or <c>desmos</c>) and have a <attr>resize-behavior</attr> attribute with the same possible values as above. Settings on these child elements will override the global setting for that specific interactive type. Known interactive types that can be specified this way are:
0 commit comments