N6 — Measure the tablet: the logical size every portrait figure depends on #50

Open
opened 2026-09-06 08:11:10 +00:00 by dtourolle · 2 comments
Owner

Every figure in D-N7 is computed at a guessed scale factor. The tablet's panel is 3000 × 1920 physical. Its logical size is that divided by whatever density Android reports, and nothing in the repository records it.

Why it matters

The two plausible answers put the dock's numbers far apart:

Scale Portrait, logical Dock width Canvas height above a 480px dock
2.0 960 × 1500 900 976
1.75 1097 × 1714 1037 1190

dock-height (N7) and the column count in the dock (N9, which needs a third of the width to clear PANEL_MIN_WIDTH) both depend on which it is.

Deliverable

  • Log the window's scale factor and logical size once at startup, beside the existing apply_layout_class call in ui/dr-ui/src/lib.rs, at a level that reaches adb logcat.
  • Run on the tablet in both orientations.
  • Record the four numbers in docs/ui-navigation.md D-N7 and correct its table if they move it.

#30 (NFR-COMPAT-1) wants a reference device named; this is one of the numbers that names it.

Acceptance

  • D-N7 cites measured logical sizes for both orientations, not an assumed scale
  • dock-height has been checked against the measured portrait height

Spec: docs/ui-navigation.md D-N7 and N6.

**Every figure in D-N7 is computed at a guessed scale factor.** The tablet's panel is 3000 × 1920 physical. Its logical size is that divided by whatever density Android reports, and nothing in the repository records it. ## Why it matters The two plausible answers put the dock's numbers far apart: | Scale | Portrait, logical | Dock width | Canvas height above a 480px dock | |---|---|---|---| | 2.0 | 960 × 1500 | 900 | 976 | | 1.75 | 1097 × 1714 | 1037 | 1190 | `dock-height` (N7) and the column count in the dock (N9, which needs a third of the width to clear `PANEL_MIN_WIDTH`) both depend on which it is. ## Deliverable - Log the window's scale factor and logical size once at startup, beside the existing `apply_layout_class` call in `ui/dr-ui/src/lib.rs`, at a level that reaches `adb logcat`. - Run on the tablet in both orientations. - Record the four numbers in `docs/ui-navigation.md` D-N7 and correct its table if they move it. #30 (NFR-COMPAT-1) wants a reference device named; this is one of the numbers that names it. ## Acceptance - [ ] D-N7 cites measured logical sizes for both orientations, not an assumed scale - [ ] `dock-height` has been checked against the measured portrait height Spec: `docs/ui-navigation.md` D-N7 and N6.
dtourolle added the uisize:Sandroid labels 2026-09-06 08:11:10 +00:00
Author
Owner

Implemented on branch dev/log-window-metrics (commits ed061b8, d8188c4), merged into integrate/portrait-dock. One line per orientation or scale change at info, the rest at debug; verified on X11: window: 850x1131 logical at scale 2.00 (1700x2262 physical) fires once when the window is turned tall. Still to do: run it on the tablet and record the numbers in D-N7.

Implemented on branch `dev/log-window-metrics` (commits ed061b8, d8188c4), merged into `integrate/portrait-dock`. One line per orientation or scale change at info, the rest at debug; verified on X11: `window: 850x1131 logical at scale 2.00 (1700x2262 physical)` fires once when the window is turned tall. Still to do: run it on the tablet and record the numbers in D-N7.
Author
Owner

Progress check (2026-09-24). The metrics logging is on master (window_metrics_level and its caller in ui/dr-ui/src/lib.rs), via other commits rather than ed061b8/d8188c4. Still to do: read adb logcat on the tablet in both orientations, replace D-N7's guessed scales (2.0 / 1.75) and check dock-height. The panel is 400 dpi, which suggests a scale of 2.5 and about 768 logical px across in portrait — to confirm. This also covers the tablet check for #51.

Progress check (2026-09-24). The metrics logging is on master (`window_metrics_level` and its caller in `ui/dr-ui/src/lib.rs`), via other commits rather than ed061b8/d8188c4. Still to do: read `adb logcat` on the tablet in both orientations, replace D-N7's guessed scales (2.0 / 1.75) and check `dock-height`. The panel is 400 dpi, which suggests a scale of 2.5 and about 768 logical px across in portrait — to confirm. This also covers the tablet check for #51.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: dtourolle/DarkRoom#50