admin-vben/packages
Akuria 294700a247
fix: skip fixed footer height in auto-content-height calculation (#7910)
* fix: skip fixed footer height in auto-content-height calculation

When the Page component's footer has position: fixed, it is removed
from the normal document flow and should not be subtracted from the
available content height. Previously, the footer's offsetHeight was
always subtracted, causing incorrect height calculation for fixed
footers.

Also reset shouldAutoHeight before recalculating to prevent stale
state on hot reload.

Fixes #4576

* fix: replace getComputedStyle footer height check with footerFixed prop

Use an explicit `footerFixed` boolean prop instead of runtime
getComputedStyle detection to determine whether the footer height
should be excluded from content height calculation. This avoids
unreliable style queries and makes the behavior deterministic.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 10:43:10 +08:00
..
@core fix: preserve tree default value when treeData starts empty (#7908) 2026-05-16 10:41:42 +08:00
constants chore: release 5.7.0 2026-03-14 09:14:23 +08:00
effects fix: skip fixed footer height in auto-content-height calculation (#7910) 2026-05-16 10:43:10 +08:00
icons chore: release 5.7.0 2026-03-14 09:14:23 +08:00
locales feat: add time zone option to preference settings (#7871) 2026-05-03 12:16:58 +08:00
preferences feat: enable project-scoped preferences extension tabs (#7803) 2026-04-13 17:52:17 +08:00
stores fix(@vben/stores): respect base URL when opening route in new window (#7837) 2026-05-01 06:49:05 +08:00
styles fix: check deps 2026-04-13 17:52:16 +08:00
types chore: release 5.7.0 2026-03-14 09:14:23 +08:00
utils Merge branch 'fork/Lmx1220/main' 2026-03-15 03:53:43 +08:00