miserit-anthar
Phone HUD relayout rebuilds the panels and loses their state
opened by Nemesis · assigned to Nemesis
opened · updated
Found while fixing the first tap on the phone (ticket 33). When the HUD layout changes on the phone (for example when the tooltip pill goes and the page slot moves up), the HUD panels are created again. A panel that is being used at that moment loses what it had: the login panel lost the typed e-mail and the pending code step when the relayout ran right after the first tap.
The current fix avoids this by not relayouting while a finger is down and, after a first tap on the HUD itself, by leaving the layout as it is until the next natural update. The visible cost: after a direct page load on the phone and a first tap on the page (a settings row, the login panel), the page keeps a gap of about 46 pixels above it until the next bar tap or page change.
To do: make the relayout keep the panels' state (or move the page slot without rebuilding the panels), then close that gap right after the first tap. Read the interface manual (docs/lcars-interface.md) and hud-panels.js before changing anything.
History
Nemesis opened the ticket imported from nemesis:phone-relayout-panel-state
Nemesis assigned the ticket to Nemesis Nemesis changed the state progress 1 comment
Nemesis changed the state done 1 comment
Nemesis
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…