Commit 4406f37
docs(ui/layout): wrap overlay parents in ZStack for GTK4 portability
The two `widgetAddOverlay` callers in `docs/examples/ui/layout/snippets.ts`
used a VStack and an ImageSymbol as the overlay parent. Macos NSView
allows `addSubview` on any view, but GTK4 can only float children above
siblings inside `gtk::Overlay` (which ZStack is backed by). Pre-edit the
v0.5.322 GTK4 backend logged the documented "non-Overlay parent —
falling back to add_child" warning at runtime; post-edit the snippet
runs warning-free for the overlay patterns.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e58ff60 commit 4406f37
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
176 | 180 | | |
177 | 181 | | |
178 | 182 | | |
179 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
180 | 187 | | |
181 | 188 | | |
182 | 189 | | |
| |||
0 commit comments