Skip to content

Commit 00b3501

Browse files
it appears as if we should not have a double line. The double line does not work with this one: R-HSA-1252013. we can look into adding double line when it makes sense but this needs to be pushed down the line for now.
1 parent 694f5b0 commit 00b3501

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

projects/pathway-browser/src/app/services/diagram.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ export class DiagramService {
352352
data: {
353353
id: item.id + '-outer',
354354
displayName: item.displayName,
355-
textX: scale(item.textPosition.x - (item.prop.x + item.prop.width)) + this.COMPARTMENT_SHIFT,
356-
textY: scale(item.textPosition.y - (item.prop.y + item.prop.height)) + this.COMPARTMENT_SHIFT,
355+
textX: scale(item.textPosition.x - (item.prop.x + item.prop.width)) + this.COMPARTMENT_SHIFT - (item.insets ? 0 : 15),
356+
textY: scale(item.textPosition.y - (item.prop.y + item.prop.height)) + this.COMPARTMENT_SHIFT + (item.insets ? 0 : 15),
357357
width: scale(item.prop.width),
358358
height: scale(item.prop.height),
359359
radius: outerCR

0 commit comments

Comments
 (0)