diff --git a/views/submission_content.ejs b/views/submission_content.ejs
index 07aee82..52ccfe7 100644
--- a/views/submission_content.ejs
+++ b/views/submission_content.ejs
@@ -73,9 +73,12 @@ else problemUrl = syzoj.utils.makeUrl(['problem', judge.problem_id]);
<% if (judge.allowedSeeCode) { %>
@@ -196,6 +199,7 @@ function update_submission() {
var a = e.find('div.auto_update');
if (!a.length) {
e.html(data);
+ window.applyTextFit();
} else {
e.find('#status_table').html(x.find('#status_table').html());
var b = x.find('div.auto_update');
@@ -210,6 +214,7 @@ function update_submission() {
if ($(b[i]).hasClass('active')) $(a[i]).addClass('active'); else $(a[i]).removeClass('active');
}
+ window.applyTextFit();
if (!x.find('#stop_ajax').length) update_submission();
}
}