Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
a9fc73a4
Commit
a9fc73a4
authored
5 years ago
by
gutkaBinit
Committed by
kevalbhatt
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3105 : UI : Distorted image is downloaded, for certain conditions
Signed-off-by:
kevalbhatt
<
kbhatt@apache.org
>
parent
4551dcd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
LineageLayoutView.js
dashboardv2/public/js/views/graph/LineageLayoutView.js
+4
-2
No files found.
dashboardv2/public/js/views/graph/LineageLayoutView.js
View file @
a9fc73a4
...
...
@@ -940,8 +940,10 @@ define(['require',
$
(
svgClone
).
find
(
'>g'
).
attr
(
"transform"
,
"scale("
+
scaleFactor
+
")"
);
var
canvasOffset
=
{
x
:
150
,
y
:
150
},
setWidth
=
(
svgClone
.
getBBox
().
width
+
(
canvasOffset
.
x
)),
setHeight
=
(
svgClone
.
getBBox
().
height
+
(
canvasOffset
.
y
));
svgClone
.
attributes
.
viewBox
.
value
=
"-10,-10,"
+
setWidth
+
","
+
setHeight
;
setHeight
=
(
svgClone
.
getBBox
().
height
+
(
canvasOffset
.
y
)),
xAxis
=
svgClone
.
getBBox
().
x
,
yAxis
=
svgClone
.
getBBox
().
y
;
svgClone
.
attributes
.
viewBox
.
value
=
xAxis
+
","
+
yAxis
+
","
+
setWidth
+
","
+
setHeight
;
var
createCanvas
=
document
.
createElement
(
'canvas'
);
createCanvas
.
id
=
"canvas"
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment