Escala del iPhone con la altura real de la barra de vista previa (sin recorte a 1440x900)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
875ae9ad67
commit
46d47797b4
@@ -917,9 +917,18 @@
|
||||
var fijar = function () {
|
||||
document.documentElement.style.setProperty("--wam-toolbar-alto", Math.ceil(tb.getBoundingClientRect().height) + "px");
|
||||
};
|
||||
var barra = porId("barra-movil");
|
||||
var fijarBarra = function () {
|
||||
if (!barra) return;
|
||||
var r = barra.getBoundingClientRect();
|
||||
if (r.height) document.documentElement.style.setProperty("--wam-barra-alto", Math.ceil(r.height + 14) + "px");
|
||||
};
|
||||
fijar();
|
||||
if (typeof ResizeObserver === "function") new ResizeObserver(fijar).observe(tb);
|
||||
else window.addEventListener("resize", fijar);
|
||||
fijarBarra();
|
||||
if (typeof ResizeObserver === "function") {
|
||||
new ResizeObserver(fijar).observe(tb);
|
||||
if (barra) new ResizeObserver(fijarBarra).observe(barra);
|
||||
} else window.addEventListener("resize", function () { fijar(); fijarBarra(); });
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user