File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/components/DiagramFrame/SeqDiagram/LifeLineLayer Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 66 :class =" { 'transform -translate-x-1/2': renderParticipants }"
77 :style =" { paddingTop: top + 'px', left: left + 'px' }"
88 >
9- <participant v-if =" renderParticipants" :entity =" entity" :offsetTop =" top" />
9+ <participant v-if =" renderParticipants" :entity =" entity" :offsetTop2 =" top" />
1010 <div v-if =" renderLifeLine" class =" line w0 mx-auto flex-grow w-px" ></div >
1111 </div >
1212</template >
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export default {
6969 const intersectionTop = useIntersectionTop ();
7070 const [scrollTop ] = useDocumentScroll ();
7171 const translate = computed (() => {
72- const participantOffsetTop = props .offsetTop || 0 ;
72+ const participantOffsetTop = props .offsetTop2 || 0 ;
7373 let top = intersectionTop .value + scrollTop .value ;
7474 if (
7575 intersectionTop .value > INTERSECTION_ERROR_MARGIN &&
@@ -93,7 +93,8 @@ export default {
9393 type: Object ,
9494 required: true ,
9595 },
96- offsetTop: {
96+ // offsetTop is a standard HTML property, so we use offsetTop2.
97+ offsetTop2: {
9798 type: Number ,
9899 default: 0 ,
99100 },
You can’t perform that action at this time.
0 commit comments