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 { &__main-container {
// Wrapper for main views // Wrapper for main views
flex: 1 1 100%; flex: 1 1 100%;
font-size: 16px; // TEMP FOR LEGACY STYLING - TODO: REMOVE! //font-size: 16px; // TEMP FOR LEGACY STYLING
} }
&__tree { &__tree {

View File

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