Skip to content

Commit

Permalink
Fix dodgy scrolling in iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
joerick committed Sep 29, 2024
1 parent 7da40e3 commit 974a843
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/_static/preview/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pyinstrument Demo</title>
<script type="module" crossorigin src="./assets/index-mbGRX7NE.js"></script>
<script type="module" crossorigin src="./assets/index-DmM09tqM.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-zASnLVqu.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion html_renderer/src/components/CallStackView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
if (!el) { throw new Error('element not set'); }
let listener
el.addEventListener('scroll', listener = () => {
scrollInnerElement!.style.minHeight = `${el.scrollTop + el.clientHeight}px`;
scrollInnerElement!.style.minHeight = `${Math.floor(el.scrollTop + el.clientHeight)}px`;
});
listener();
return () => {
Expand Down
2 changes: 1 addition & 1 deletion pyinstrument/renderers/html_resources/app.js

Large diffs are not rendered by default.

0 comments on commit 974a843

Please sign in to comment.