mirror of
https://github.com/nasa/openmct.git
synced 2025-01-11 23:42:41 +00:00
Closes #7936
- Fixed previous change that broke grid layout of Stacked Plots in Time Strip. - Re-enabled code that sets min-height for Stacked Plots in Time Strip based on the number of children.
This commit is contained in:
parent
8c72e4a062
commit
65b1f0256d
@ -75,6 +75,7 @@ const unknownObjectType = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const AXES_PADDING = 20;
|
const AXES_PADDING = 20;
|
||||||
|
const PLOT_ITEM_H_PX = 100;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -156,14 +157,12 @@ export default {
|
|||||||
rowCount = getValidatedGroups(domainObject, planData).length;
|
rowCount = getValidatedGroups(domainObject, planData).length;
|
||||||
} else if (domainObject.type === 'gantt-chart') {
|
} else if (domainObject.type === 'gantt-chart') {
|
||||||
rowCount = Object.keys(domainObject.configuration.swimlaneVisibility).length;
|
rowCount = Object.keys(domainObject.configuration.swimlaneVisibility).length;
|
||||||
} else if (domainObject.type === 'telemetry.plot.stacked') {
|
|
||||||
rowCount = domainObject.composition.length;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let height =
|
let height =
|
||||||
domainObject.type === 'telemetry.plot.stacked'
|
domainObject.type === 'telemetry.plot.stacked'
|
||||||
? `${domainObject.composition.length * 100}px`
|
? `${domainObject.composition.length * PLOT_ITEM_H_PX}px`
|
||||||
: '100px';
|
: 'auto';
|
||||||
let item = {
|
let item = {
|
||||||
domainObject,
|
domainObject,
|
||||||
objectPath,
|
objectPath,
|
||||||
|
@ -56,7 +56,11 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="c-swimlane__lane-object" :class="{ 'u-contents': showUcontents }">
|
<div
|
||||||
|
class="c-swimlane__lane-object"
|
||||||
|
:style="{ 'min-height': minHeight }"
|
||||||
|
:class="{ 'u-contents': showUcontents }"
|
||||||
|
>
|
||||||
<slot name="object"></slot>
|
<slot name="object"></slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user