Skip to content

Commit 4c11972

Browse files
committed
Fix height of fullscreen
1 parent b3cb330 commit 4c11972

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/MarkdownPalettes.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ export default {
141141
if (operation === 'fullscreen') {
142142
if (!this.config.fullscreen) {
143143
this.config.fullscreen = true
144-
this.editorHeight = (screen.height - this.$refs.toolbar.$el.clientHeight).toString() + 'px'
145-
console.log(this.editorHeight)
144+
this.editorHeight = (window.innerHeight - this.$refs.toolbar.$el.clientHeight).toString() + 'px'
146145
} else {
147146
this.config.fullscreen = false
148147
this.editorHeight = this.editorConfig.height

0 commit comments

Comments
 (0)