adventskalender/shared/js/position.js aktualisiert
This commit is contained in:
1 parent
6613a4302d
commit
f3f294ab11
1 file changed
+1
-1
@@ -22,7 +22,7 @@ function positionAllDoors() {
|
||||
door.style.position = 'absolute';
|
||||
door.style.width = w + 'px';
|
||||
door.style.height = w + 'px';
|
||||
door.style.top = (imgRect.height * (topPct / 100)) + 'px';
|
||||
door.style.top = (imgRect.top - contRect.top + imgRect.height * (topPct / 100)) + 'px';
|
||||
door.style.left = (imgRect.width * (leftPct / 100) + (contRect.width - imgRect.width) / 2) + 'px';
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user