Commit ba8bcdab authored by Phil Hughes's avatar Phil Hughes

fixed monaco height

parent f64b0059
...@@ -24,6 +24,7 @@ const RepoEditor = { ...@@ -24,6 +24,7 @@ const RepoEditor = {
const newModel = this.monaco.editor.createModel(this.blobRaw, languageID); const newModel = this.monaco.editor.createModel(this.blobRaw, languageID);
this.monacoInstance.setModel(newModel); this.monacoInstance.setModel(newModel);
this.monacoInstance.layout();
}).catch(Helper.loadingError); }).catch(Helper.loadingError);
}, },
...@@ -32,7 +33,7 @@ const RepoEditor = { ...@@ -32,7 +33,7 @@ const RepoEditor = {
if (!this.openedFiles.length || (this.binary && !this.activeFile.raw)) { if (!this.openedFiles.length || (this.binary && !this.activeFile.raw)) {
this.$el.style.display = 'none'; this.$el.style.display = 'none';
} else { } else {
this.$el.style.display = 'inline-block'; this.$el.style.display = '';
} }
}, },
......
...@@ -147,6 +147,7 @@ ...@@ -147,6 +147,7 @@
#ide { #ide {
flex: 1; flex: 1;
min-height: 0;
} }
#repo-file-buttons { #repo-file-buttons {
...@@ -155,7 +156,6 @@ ...@@ -155,7 +156,6 @@
padding: 10px 5px; padding: 10px 5px;
position: relative; position: relative;
border-top: 1px solid $white-normal; border-top: 1px solid $white-normal;
margin-top: -5px;
} }
#binary-viewer { #binary-viewer {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment