Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit bd9e4e4

Browse files
Prevent codelens iframe from sticking out wildy and allow to expand if more space available
1 parent 05d62cd commit bd9e4e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runestone/activecode/js/activecode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ export class ActiveCode extends RunestoneBase {
893893
var embedUrlStr = `${srcURL}#${srcVars}`;
894894
var myIframe = document.createElement("iframe");
895895
myIframe.setAttribute("id", this.divid + "_codelens");
896-
myIframe.setAttribute("width", "800");
896+
myIframe.setAttribute("width", "100%");
897897
myIframe.setAttribute("height", "500");
898898
myIframe.setAttribute("style", "display:block");
899899
myIframe.style.background = "#fff";
@@ -924,7 +924,7 @@ export class ActiveCode extends RunestoneBase {
924924
srcURL = eBookConfig.app + "/admin/diffviewer?divid=" + div_id;
925925
myIframe = document.createElement("iframe");
926926
myIframe.setAttribute("id", div_id + "_coach");
927-
myIframe.setAttribute("width", "800px");
927+
myIframe.setAttribute("width", "100%");
928928
myIframe.setAttribute("height", "500px");
929929
myIframe.setAttribute("style", "display:block");
930930
myIframe.style.background = "#fff";

0 commit comments

Comments
 (0)