adventskalender/shared/js/position.js aktualisiert
This commit is contained in:
@@ -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