Fix exported image cut off - Safari

main
baruchadi 2 years ago committed by Mike Fix
parent ca297da88f
commit b91d81cb99

@ -108,10 +108,12 @@ class Editor extends React.Component {
const width = node.offsetWidth * exportSize
const height = squared ? node.offsetWidth * exportSize : node.offsetHeight * exportSize
const transformOrigin = window.navigator.userAgent.indexOf('Safari') !== -1 ? '0 50%' : 'center'
const config = {
style: {
transform: `scale(${exportSize})`,
'transform-origin': 'center',
'transform-origin': transformOrigin,
background: squared ? this.state.backgroundColor : 'none',
},
filter: n => {

Loading…
Cancel
Save