Changeset 38964 for main/trunk/greenstone3/web/interfaces/default/transform/layouts/webswing-collage.xsl
- Timestamp:
- 2024-04-30T18:49:50+12:00 (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/layouts/webswing-collage.xsl
r38956 r38964 164 164 webswingParams["height"] = stripUnitOffAttribute("px", h); 165 165 166 166 // Webswing only uses the width and height set on the webswing-collage element 167 // Override this with any dimensions set on any applet element, as that is user-controlled 168 // from GLI. style.setProperty failed without the important parameter to force the setting. 169 // https://stackoverflow.com/questions/5191478/changing-element-style-attribute-dynamically-using-javascript 170 document.getElementById("webswing-collage").style.setProperty("width", webswingParams["width"] + "px", "important"); 171 document.getElementById("webswing-collage").style.setProperty("height", webswingParams["height"] + "px", "important"); 172 167 173 // Having collected all the webswingParams, we can finally build up the single webswing customArgs string 168 174 var _args = "";
Note:
See TracChangeset
for help on using the changeset viewer.