fix display of attr detail

This commit is contained in:
zadam 2020-11-27 22:38:15 +01:00
parent b0217ee04c
commit 6df6fe03fa
2 changed files with 8 additions and 3 deletions

View file

@ -87,7 +87,7 @@ export default class CollapsibleSectionContainer extends TabAwareWidget {
doRender() {
this.$widget = $(TPL);
this.contentSized();
this.overflowing();
this.$titleContainer = this.$widget.find('.section-title-container');
this.$bodyContainer = this.$widget.find('.section-body-container');

View file

@ -5,6 +5,10 @@ import attributeRenderer from "../services/attribute_renderer.js";
const TPL = `
<div class="inherited-attributes-widget">
<style>
.inherited-attributes-widget {
position: relative;
}
.inherited-attributes-container {
color: var(--muted-text-color);
max-height: 200px;
@ -39,7 +43,7 @@ export default class InheritedAttributesWidget extends TabAwareWidget {
doRender() {
this.$widget = $(TPL);
this.contentSized();
this.overflowing();
this.$container = this.$widget.find('.inherited-attributes-container');
this.$widget.append(this.attributeDetailWidget.render());
@ -64,7 +68,8 @@ export default class InheritedAttributesWidget extends TabAwareWidget {
noteId: attribute.noteId,
type: attribute.type,
name: attribute.name,
value: attribute.value
value: attribute.value,
isInheritable: attribute.isInheritable
},
isOwned: false,
x: e.pageX,