tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
log resize listener
awarm.space
1 year ago
f76ef496
ec77efe0
+2
1 changed file
expand all
collapse all
unified
split
app
layout.tsx
+2
app/layout.tsx
···
41
41
dangerouslySetInnerHTML={{
42
42
__html: `
43
43
let listener = () => {
44
44
+
console.log("firing listener", window.innerHeight, window.innerWidth)
44
45
let el = document.querySelector(":root");
46
46
+
console.log(el)
45
47
el.style.setProperty("--leaflet-height-unitless", window.innerHeight)
46
48
el.style.setProperty("--leaflet-width-unitless", window.innerWidth)
47
49
}