Skip to content

fix(panel): blank panel on HA 2026.8 — panel host collapsed to 0 height - #15

Merged
buggedcom merged 1 commit into
mainfrom
fix/panel-zero-height-2026-8
Aug 24, 2026
Merged

fix(panel): blank panel on HA 2026.8 — panel host collapsed to 0 height#15
buggedcom merged 1 commit into
mainfrom
fix/panel-zero-height-2026-8

Conversation

@buggedcom

Copy link
Copy Markdown
Owner

Symptom

After 0.6.2 (which fixed the preload crash), the panel still showed blank on HA 2026.8 — the "Loading Datapoints…" shell appeared, then nothing. No console errors.

Diagnosis (via Chrome DevTools on the live panel)

The content actually rendered — console showed _renderContent: full render complete, history-card load triggered, series initial draw. But measuring the DOM:

element height
ha-drawer 490px ✅
partial-panel-resolver 0 (computed display: inline)
ha-panel-custom 0 (height: 100% of a 0 parent)
hass-datapoints-history-panel (:host) 0 (height: 100% of a 0 parent)
chart / cards inside 699px (rendered, but clipped by the 0-height host)

The panel's :host { height: 100% } inherits height through the ha-drawer → partial-panel-resolver → ha-panel-custom chain. On HA 2026.8 that chain resolves to 0 (the router wrapper no longer imposes a height on custom panels), so the whole panel collapsed to 0px and showed blank. Built-in panels self-size and are unaffected.

Proof: forcing the panel host to viewport height in the live page rendered the full panel (chart with Sauna Temperature data, date-range controls, zoom, search).

Fix

Both the main panel and the loading-shell :host now fill the viewport (height: 100vh, then 100dvh where supported) instead of depending on the collapsed ancestor chain. Viewport height equals the old 100% on cores that did size the chain, so it's backward-compatible with older HA.

Verification

  • Confirmed live via Chrome DevTools (content renders once the host has height).
  • pnpm lint (eslint + package-json + prettier + tsc) ✅
  • pnpm build rebuilt + committed (banner → v0.6.3).

Bumps to 0.6.3.

🤖 Generated with Claude Code

…apsed 100% chain

The panel host used `:host { height: 100% }`, which inherits height from the
ha-drawer → partial-panel-resolver → ha-panel-custom chain. On HA 2026.8 that
chain resolves to height 0 (partial-panel-resolver computes as display:inline
with no height), so ha-panel-custom and the panel host both collapsed to 0px.
The content still rendered (chart, controls, data) but at 0 height, so the
panel showed blank after the loading shell.

Fix both the main panel and the loading-shell :host to fill the viewport
(height: 100vh, then 100dvh where supported) instead of depending on the
ancestor chain. Viewport height equals the old 100% on cores that did size the
chain, so this stays backward-compatible with older HA.

Verified live via Chrome DevTools: forcing the panel host to viewport height
made the full panel (chart with data, date-range controls, search) render.
Rebuilds the bundle and bumps to 0.6.3.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@buggedcom
buggedcom merged commit 9938183 into main Aug 24, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant