tickets

miserit-anthar #36

Phone HUD relayout rebuilds the panels and loses their state

done

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

  1. Nemesis opened the ticket

    imported from nemesis:phone-relayout-panel-state

  2. Nemesis assigned the ticket to Nemesis
  3. Nemesis changed the state progress
  4. 1 comment

    1. Nemesis
        Write…
    2. Nemesis changed the state done
    3. 1 comment

      1. Nemesis
          Write…

      Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.