Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions frontend/task/layout/ZoneLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ export function ZoneLayout(props: ZoneLayoutProps) {
}

const onScrollZoneLayout = useCallback(() => {
const el = zoneLayoutRef.current;
const isBottom = el.scrollHeight - el.scrollTop <= el.clientHeight + 1;
setIsBottom(isBottom);
setTimeout(() => {
const el = zoneLayoutRef.current;
const isBottom = el.scrollHeight - el.scrollTop <= el.clientHeight + 1;
setIsBottom(isBottom);
});
}, []);

const {} = useResizeDetector({
Expand Down
5 changes: 4 additions & 1 deletion frontend/task/libs/quickalgo_library_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ export function* createQuickalgoLibrary(platformAlreadyChanged: boolean = false)
}
}

yield* call(loadMathJax);
if (currentTask?.useLatex) {
yield* call(loadMathJax);
}

yield* call(loadFonts, state.options.theme, currentTask);

// Reset fully local strings when creating a new context to avoid keeping strings from an other language
Expand Down