fix: revert to CSS zoom property for proper layout-affecting zoom
This commit is contained in:
+2
-8
@@ -354,14 +354,8 @@
|
||||
const zoomLevel = zoomValue / 100;
|
||||
|
||||
requestAnimationFrame(() => {
|
||||
// Use transform scale for true zoom that extends beyond viewport
|
||||
zoomWrapper.style.transform = `scale(${zoomLevel})`;
|
||||
zoomWrapper.style.transformOrigin = 'top center';
|
||||
|
||||
// Adjust wrapper height to account for scale
|
||||
// This ensures the footer appears at the correct position
|
||||
const originalHeight = zoomWrapper.scrollHeight;
|
||||
zoomWrapper.style.marginBottom = `${originalHeight * (zoomLevel - 1)}px`;
|
||||
// Use CSS zoom property - it properly affects layout and extends beyond viewport
|
||||
zoomWrapper.style.zoom = zoomLevel;
|
||||
|
||||
// Update display
|
||||
updateZoomDisplay(zoomValue);
|
||||
|
||||
Reference in New Issue
Block a user