- 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:
Charles Hacskaylo 2024-12-18 16:38:57 -08:00
parent 8c72e4a062
commit 65b1f0256d
2 changed files with 8 additions and 5 deletions

View File

@ -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,

View File

@ -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>