mirror of
https://github.com/nasa/openmct.git
synced 2025-03-13 07:54:13 +00:00
Adjustable Time Strip view: column resizing
- Column resizing now shows the horizontal resize handle on the Time axis swimlane only. Handle now uses `:height` from the extended overlay lines to extend across all swimlanes. - TODO: fix regressions in Plan/Gantt view affecting swimlane height and overflow handling.
This commit is contained in:
parent
03473ef28f
commit
2a1782522d
@ -25,6 +25,8 @@
|
|||||||
<SwimLane
|
<SwimLane
|
||||||
v-for="timeSystemItem in timeSystems"
|
v-for="timeSystemItem in timeSystems"
|
||||||
:key="timeSystemItem.timeSystem.key"
|
:key="timeSystemItem.timeSystem.key"
|
||||||
|
:canShowResizeHandle="true"
|
||||||
|
:resizeHandleHeight="height"
|
||||||
class="c-swimlane__time-axis"
|
class="c-swimlane__time-axis"
|
||||||
>
|
>
|
||||||
<template #label>
|
<template #label>
|
||||||
|
@ -56,7 +56,12 @@
|
|||||||
@click="pressOnButton"
|
@click="pressOnButton"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="c-swimlane__handle horizontal" @mousedown="mousedown"></div>
|
<div
|
||||||
|
v-if="canShowResizeHandle"
|
||||||
|
class="c-swimlane__handle horizontal"
|
||||||
|
:style="{ height: `${resizeHandleHeight}px` }"
|
||||||
|
@mousedown="mousedown"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@ -118,6 +123,19 @@ export default {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
canShowResizeHandle: {
|
||||||
|
type: Boolean,
|
||||||
|
default() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
resizeHandleHeight: {
|
||||||
|
type: Number,
|
||||||
|
required: false,
|
||||||
|
default() {
|
||||||
|
return 32;
|
||||||
|
}
|
||||||
|
},
|
||||||
spanRowsCount: {
|
spanRowsCount: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default() {
|
default() {
|
||||||
|
@ -55,6 +55,7 @@
|
|||||||
&__handle {
|
&__handle {
|
||||||
$size: $handleSize;
|
$size: $handleSize;
|
||||||
$margin: $handleMargin;
|
$margin: $handleMargin;
|
||||||
|
z-index: 2;
|
||||||
|
|
||||||
@include resizeHandleStyle($size, $margin);
|
@include resizeHandleStyle($size, $margin);
|
||||||
|
|
||||||
@ -69,7 +70,7 @@
|
|||||||
&.horizontal {
|
&.horizontal {
|
||||||
// Resizes in X dimension
|
// Resizes in X dimension
|
||||||
left: auto;
|
left: auto;
|
||||||
right: -1 * $handleHitSize;
|
right: math.floor($handleHitSize * -0.5);
|
||||||
width: $handleHitSize;
|
width: $handleHitSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -102,8 +103,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.is-editing & {
|
.is-editing & {
|
||||||
// TODO: BETTER SELECTOR TO LIMIT STYLING TO TIME STRIP IN MAIN VIEW, NOT NESTED VIEWS
|
//grid-column-gap: $handleHitSize;
|
||||||
grid-column-gap: $handleHitSize;
|
|
||||||
.c-swimlane__handle {
|
.c-swimlane__handle {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user