From dcbb4478bf92521c771788403efa39ac5fa77a08 Mon Sep 17 00:00:00 2001 From: AurelienDidier Date: Mon, 6 Jan 2025 17:04:37 +0100 Subject: [PATCH] [4310] Border does not appear when using ListLayoutStrategy with a dash style border. Bug: https://github.com/eclipse-sirius/sirius-web/issues/4310 Signed-off-by: AurelienDidier --- .../src/converter/ListNodeConverter.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/converter/ListNodeConverter.ts b/packages/diagrams/frontend/sirius-components-diagrams/src/converter/ListNodeConverter.ts index f3b7cfa577..70798bc212 100644 --- a/packages/diagrams/frontend/sirius-components-diagrams/src/converter/ListNodeConverter.ts +++ b/packages/diagrams/frontend/sirius-components-diagrams/src/converter/ListNodeConverter.ts @@ -9,6 +9,7 @@ * * Contributors: * Obeo - initial API and implementation + * Aurelien Didier - Correct bug 4310 *******************************************************************************/ import { Node, XYPosition } from '@xyflow/react'; import { GQLNodeDescription } from '../graphql/query/nodeDescriptionFragment.types'; @@ -26,7 +27,7 @@ import { defaultHeight, defaultWidth } from '../renderer/layout/layoutParams'; import { ListNodeData } from '../renderer/node/ListNode.types'; import { GQLDiagramDescription } from '../representation/DiagramRepresentation.types'; import { IConvertEngine, INodeConverter } from './ConvertEngine.types'; -import { isListLayoutStrategy } from './convertDiagram'; +import { convertLineStyle, isListLayoutStrategy } from './convertDiagram'; import { convertHandles } from './convertHandles'; import { convertInsideLabel, convertOutsideLabels } from './convertLabel'; @@ -74,7 +75,7 @@ const toListNode = ( borderRightColor: style.borderColor, borderRadius: style.borderRadius, borderWidth: style.borderSize, - borderStyle: style.borderStyle, + borderStyle: convertLineStyle(style.borderStyle), }, insideLabel: null, outsideLabels: convertOutsideLabels(outsideLabels),