Fix: Karte nicht sichtbar - Container-Hoehe in gridstack korrigiert
- map-card: position absolute + inset 0 (zuverlaessig in gridstack) - map-container: min-height 0 statt 200px (flex-Item braucht das) - map-empty: position absolute statt flex-basiert - invalidateSize mit mehreren Retries (100/300/800ms) - Bounds werden nach invalidateSize erneut gesetzt Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Dieser Commit ist enthalten in:
@@ -707,8 +707,19 @@ const UI = {
|
||||
}
|
||||
}
|
||||
|
||||
// Resize-Fix fuer gridstack
|
||||
setTimeout(() => { if (this._map) this._map.invalidateSize(); }, 200);
|
||||
// Resize-Fix fuer gridstack (mehrere Versuche, da Container-Hoehe erst spaeter steht)
|
||||
const self = this;
|
||||
[100, 300, 800].forEach(delay => {
|
||||
setTimeout(() => {
|
||||
if (!self._map) return;
|
||||
self._map.invalidateSize();
|
||||
if (bounds.length === 1) {
|
||||
self._map.setView(bounds[0], 8);
|
||||
} else if (bounds.length > 1) {
|
||||
self._map.fitBounds(bounds, { padding: [30, 30], maxZoom: 12 });
|
||||
}
|
||||
}, delay);
|
||||
});
|
||||
},
|
||||
|
||||
_applyMapTiles() {
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren