Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sascha Herzinger
AdaCharts
Commits
a2680814
Commit
a2680814
authored
Feb 01, 2019
by
Sascha Herzinger
Browse files
foreignObject fixes for chrome + safari
parent
1864ad15
Changes
1
Show whitespace changes
Inline
Side-by-side
src/charts/impl/Scatterplot.js
View file @
a2680814
...
...
@@ -87,8 +87,12 @@ export default class extends Chart {
return
'
scatterplot
'
;
}
prepareSVGForCapture
()
{
return
this
.
svg
;
captureSetup
()
{
}
captureTeardown
()
{
}
render
({
...
...
@@ -145,12 +149,16 @@ export default class extends Chart {
}
this
.
foreignObject
.
attr
(
'
x
'
,
margin
.
x
)
.
attr
(
'
y
'
,
margin
.
y
)
.
attr
(
'
width
'
,
width
)
.
attr
(
'
height
'
,
height
);
.
attr
(
'
height
'
,
height
)
.
style
(
'
position
'
,
'
relative
'
)
.
style
(
'
z-index
'
,
-
1
)
.
style
(
'
padding-left
'
,
margin
.
left
)
.
style
(
'
padding-top
'
,
margin
.
top
);
this
.
foreignBody
.
style
(
'
position
'
,
'
relative
'
)
.
style
(
'
z-index
'
,
-
1
)
.
style
(
'
width
'
,
`
${
width
}
px`
)
.
style
(
'
height
'
,
`
${
height
}
px`
);
...
...
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