Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a3ee4d7

Browse files
committed
Fix monaco editor's scroll size.
1 parent e5c6385 commit a3ee4d7

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

‎src/ui/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,9 @@ document.addEventListener('DOMContentLoaded', (event) => {
259259
horizontal: 'auto'
260260
},
261261
automaticLayout: true,
262-
dimension: {
263-
width: 400,
264-
height: 400
265-
}
262+
scrollBeyondLastLine: false
266263
});
267-
264+
268265
onProblemSelected(problemNames[0]);
269266
});
270267

‎src/ui/styles.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,13 @@ select:hover {
164164

165165
#top-right-panel {
166166
overflow: hidden;
167+
height: 100%;
167168
}
168169

169170
.panel-item-fixed-height {
170171
flex: none;
171172
}
172173

173-
#test-results-content, #user-solution-content {
174-
height: 100%; /* or any fixed height */
175-
width: 100%; /* or any fixed width */
176-
overflow: auto; /* add scrollbars if content overflows */
177-
}
178-
179174
code {
180175
background-color: #ffffff12;
181176
border-color: #f7faff1f;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /