Skip to content

Commit

Permalink
temporal workaround for #973
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobuzzi committed Oct 4, 2019
1 parent 6ca97dd commit b4e051f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
svg properties
setDimensionsTo: aWASvgCanvasTag from: xpdlReader
| dimensions |

dimensions := xpdlReader getDiagramDimensions.

self isScaledByParent ifTrue: [self setParentScaleAttributesWith: xpdlReader getDiagramDimensions].
autoSetViewPort ifTrue: [
aWASvgCanvasTag attributeAt: 'width' put: '100%'.
aWASvgCanvasTag attributeAt: 'height' put: '100%'.
aWASvgCanvasTag attributeAt: 'width' put: dimensions x.
aWASvgCanvasTag attributeAt: 'height' put: dimensions y.
].
viewPortArray ifNotNil: [
aWASvgCanvasTag attributeAt: 'width' put: viewPortArray first.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"renderSvgDefinitionsOn:" : "brunobb 09/25/2019 11:28",
"renderXpdlActivity:on:" : "brunobb 09/26/2019 03:10",
"renderXpdlScript:on:" : "brunobb 09/26/2019 03:50",
"setDimensionsTo:from:" : "brunobb 10/02/2019 13:16" } }
"setDimensionsTo:from:" : "brunobb 10/04/2019 12:09" } }
Loading

0 comments on commit b4e051f

Please sign in to comment.