mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 23:46:10 +02:00
🐛 Fix scroll and positioning on viewer.
This commit is contained in:
parent
b563ab445c
commit
0a1d6f1bdb
2 changed files with 9 additions and 5 deletions
|
@ -86,13 +86,12 @@
|
|||
(gmt/translate-matrix))
|
||||
frame (assoc frame :displacement-modifier modifier)
|
||||
|
||||
transform (str "scale(" zoom ")")]
|
||||
|
||||
width (* (:width frame) zoom)
|
||||
height (* (:height frame) zoom)]
|
||||
|
||||
[:svg {:view-box (str "0 0 " (:width frame 0) " " (:height frame 0))
|
||||
:width (:width frame)
|
||||
:height (:height frame)
|
||||
:transform transform
|
||||
:width width
|
||||
:height height
|
||||
:version "1.1"
|
||||
:xmlnsXlink "http://www.w3.org/1999/xlink"
|
||||
:xmlns "http://www.w3.org/2000/svg"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue