Skip to content

Commit da2b499

Browse files
Scrollbar always on bottom
1 parent ce6fd73 commit da2b499

33 files changed

Lines changed: 4206 additions & 416 deletions

File tree

runestone/activecode/js/activecode_brython.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ export default class BrythonActiveCode extends ActiveCode {
2929
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/styles/default.min.css">
3030
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/highlight.min.js"></script>
3131
<style>
32-
pre {
33-
position: sticky; max-height: 200px; width: 94%; overflow: auto; clear: both; resize: both; padding: 12px;
34-
background: white; font-size: 13px; line-height: 1.42857143; border: 1px solid #ccc; border-radius: 4px;
35-
}
36-
code{
37-
border: 1px solid #ccc; border-radius: 4px;
38-
}
3932
html, body{
4033
height: max-content; width: 100%;
4134
}
4235
.container-pre{
43-
position: fixed; bottom: 0px; width: 100%;
36+
background: white; font-size: 13px; line-height: 1.42857143; border: 1px solid #ccc; border-radius: 4px;
37+
position: fixed; bottom: 0px; width: 94%; max-height: 200px; overflow: auto; clear: both; resize: both; transform: scale(1, -1);
38+
}
39+
pre {
40+
position: sticky; padding: 12px; transform: scale(1, -1);
41+
}
42+
code{
43+
border: 1px solid #ccc; border-radius: 4px;
4444
}
4545
</style>
4646
</head>
@@ -109,7 +109,7 @@ my_exec("""${prog}
109109
""")
110110
111111
document <= html.SCRIPT("hljs.highlightAll();")
112-
document <= html.SCRIPT("let container = document.querySelector('.container-pre'); let height = container.offsetHeight; console.log(height); document.body.style.paddingBottom = String(height)+'px';")
112+
document <= html.SCRIPT("let container = document.querySelector('.container-pre'); let height = container.offsetHeight; document.body.style.paddingBottom = String(height)+'px';")
113113
</script>
114114
</body>
115115
</html>

runestone/dist/node_modules_moment_locale_sync_recursive_-runestone_activecode_js_acfactory_js.bundle.js

Lines changed: 45 additions & 30 deletions
Large diffs are not rendered by default.

runestone/dist/runestone.bundle.js

Lines changed: 33 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runestone/dist/runestone_clickableArea_js_timedclickable_js.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runestone/dist/runestone_codelens_js_codelens_js.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runestone/dist/runestone_codelens_js_pytutor-embed_bundle_js.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runestone/dist/runestone_common_js_runestonebase_js.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runestone/dist/runestone_datafile_js_datafile_js.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runestone/dist/runestone_dragndrop_js_timeddnd_js.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runestone/dist/runestone_fitb_js_timedfitb_js.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)