Repository navigation
Commit f4e77cd
committed
Let the console header wrap, so the device stops sliding off-centre
Reported as bad scaling in the inspector: the overlay boxes did not sit
on the elements they described. The mapping was right — a node computed
to 7.96% left and 84.08% wide, exactly what its frame implies — and the
overlay tracked the canvas precisely. Both had simply been moved.
The header is 1014px of controls. In a window narrower than that it
overflowed, and clicking Inspect, which sits near its right end,
scrolled the page sideways to bring the button into view: scrollX went
from 0 to 152 and the stage went with it, carrying the device and its
overlay off-centre. Nothing was mis-scaled; the whole layout had been
dragged.
The header now wraps and the app-id input can shrink, so at 806px the
header measures 806 and scrollX stays 0 through the click. Verified at
that width: the device sits fully inside the stage and a node box lands
at 8.0% left, 84.1% wide within the canvas, matching its frame.1 parent 53e000e commit f4e77cd
2 files changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | | - | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments