Skip to content

Commit

Permalink
Fix IE styling bugs in rich workspaces and the editor
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Sep 11, 2020
1 parent 178964a commit 8972a3a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/EditorWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ export default {
#editor {
padding-top: 50px;
overflow: auto;
// Fix for IE11 issue where the menubar sometimes was positioned under the text
z-index: 1000;
}
.has-conflicts #editor {
padding-top: 0px;
Expand Down
35 changes: 35 additions & 0 deletions src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export default {
#rich-workspace::v-deep #editor-container {
height: 100%;
position: unset !important;
top: auto !important;
}

#rich-workspace::v-deep #editor-wrapper {
Expand Down Expand Up @@ -262,4 +263,38 @@ export default {
}
}

html.ie {
#rich-workspace::v-deep {
#editor-container {
position: initial;
}

#editor-wrapper {
position: relative !important;
top: auto !important;
}

#editor {
display: flex;
flex-direction: column;
overflow: hidden !important;
}

.menubar {
position: relative;
overflow: hidden;
flex-shrink: 0;
height: 44px;
top: auto;
}

#editor > div:nth-child(2) {
min-height: 44px;
overflow-x: hidden;
overflow-y: auto;
flex-shrink: 1;
}
}
}

</style>

0 comments on commit 8972a3a

Please sign in to comment.