Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scroll in cpp editor #2104

Merged
merged 1 commit into from
Feb 19, 2021
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
@mixin scrollable-attachment($top, $scroll: scroll) {
position: absolute;
top: $top;
bottom: 0;
left: 0;
right: 0;
overflow: $scroll;
}

.AttachmentEditors {
display: flex;
width: 100%;
Expand All @@ -16,15 +25,16 @@
&.isActive {
display: flex;
flex-flow: column;
position: relative;
}

.cpp-editor {
display: flex;
flex-grow: 1;
position: relative;

.ReactCodeMirror {
width: 100%;
height: auto;
@include scrollable-attachment(0, hidden);
}
.CodeMirror-line, .CodeMirror-line * {
cursor: text;
Expand All @@ -35,13 +45,7 @@
}

.tabtest-editor {
position: absolute;
top: 40px;
bottom: 0;
left: 0;
right: 0;
overflow: scroll;

@include scrollable-attachment(40px);
@include styled-scrollbar();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
}

.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
background-color: white; /* The little square between H and V scrollbars */
/* The little square between H and V scrollbars */
opacity: 0;
}

/* GUTTER */
Expand Down