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;
|
const zoomLevel = zoomValue / 100;
|
||||||
|
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
// Use transform scale for true zoom that extends beyond viewport
|
// Use CSS zoom property - it properly affects layout and extends beyond viewport
|
||||||
zoomWrapper.style.transform = `scale(${zoomLevel})`;
|
zoomWrapper.style.zoom = 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`;
|
|
||||||
|
|
||||||
// Update display
|
// Update display
|
||||||
updateZoomDisplay(zoomValue);
|
updateZoomDisplay(zoomValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user