Fix new ObjectView

- Removed empty <div> in template;
- Added display: contents to container div;
This commit is contained in:
charlesh88 2018-09-17 11:45:56 -07:00
parent fbf1c68c7a
commit 80b02672a6
2 changed files with 5 additions and 3 deletions

View File

@ -151,7 +151,7 @@
&__main-container {
// Wrapper for main views
flex: 1 1 100%;
font-size: 16px; // TEMP FOR LEGACY STYLING - TODO: REMOVE!
//font-size: 16px; // TEMP FOR LEGACY STYLING
}
&__tree {

View File

@ -1,9 +1,10 @@
<template>
<div>
</div>
</template>
<style lang="scss">
.l-object-view {
display: contents;
}
</style>
<script>
@ -49,6 +50,7 @@ export default {
return;
}
this.viewContainer = document.createElement('div');
this.viewContainer.classList.add('l-object-view');
this.$el.append(this.viewContainer);
let provider = this.openmct.objectViews.getByProviderKey(this.viewKey);
if (!provider) {