Repository navigation
Commit d145a75
iPhone Duo: the chat list's search field stays on screen in unfolded landscape
With no status bar height, SearchDisplayController starts a list-mode search bar 20pt above the top, which suits the
legacy fields: they are drawn at the bottom of the bar. The glass field is drawn at the top of its frame, in the
navigation bar's search row, already below the status bar, so the offset put it 20pt above the row. In the Duo's
unfolded landscape the list pane has no status bar (the clock is in the detail pane's corner), and the active field
sat at window y -12, half off the screen. A glass bar now starts at the row's top, its bottom where it was, so the
results' inset is unchanged. Any status bar height above 0, the legacy fields and `.navigation` mode lay out as before.
Verified on the Duo simulator, unfolded landscape: the field at window y 8 (was -12, from an lldb frame dump), and the
open animation, captured at 10x slow, settles there without a jump.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 336db35 commit d145a75
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
14 | 25 | | |
15 | 26 | | |
16 | 27 | | |
| |||
189 | 200 | | |
190 | 201 | | |
191 | 202 | | |
192 | | - | |
| 203 | + | |
193 | 204 | | |
194 | 205 | | |
195 | 206 | | |
| |||
286 | 297 | | |
287 | 298 | | |
288 | 299 | | |
289 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
290 | 305 | | |
291 | 306 | | |
292 | 307 | | |
| |||
0 commit comments