Fix div positioning on Firefox and Safari issue #87 (#201)

* fix div positionning on Firefox and Safari

* Use style to fix css positionning for artifact
This commit is contained in:
Romuald
2021-08-10 18:04:19 +02:00
committed by GitHub
parent ef0d085e22
commit 6551734ac1
3 changed files with 4 additions and 3 deletions

View File

@@ -193,7 +193,7 @@ var SpacedeckBoardArtifacts = {
z = a.z;
if (z<0) z=0; // fix negative z-index
styles = [
"left:" +a.x+"px",
"top:" +a.y+"px",
@@ -206,7 +206,7 @@ var SpacedeckBoardArtifacts = {
if (a.margin_right) styles.push("margin-right:"+a.margin_right+"px");
if (a.margin_top) styles.push("margin-top:"+a.margin_top+"px");
if (a.margin_bottom) styles.push("margin-bottom:"+a.margin_bottom+"px");
// FIXME: via class logic?
if (a.mime.match("vector")) {
styles.push("overflow:visible");

File diff suppressed because one or more lines are too long

View File

@@ -3,6 +3,7 @@
.artifact {
position: relative;
line-height: normal;
//-webkit-transform: translate3d(0,0,0); // hw accel
iframe {