Changed
- BREAKING: layout keeps the focused field and dialogs above the soft keyboard
(#1109). Before, the soft keyboard covered the bottom of the window and
nothing moved: a field low on the screen was hidden while the user typed, and
a centred dialog lost its lower half (the showcase's Dialog → Prompt on a
phone had OK / Cancel under the keyboard). An app could not fix a built-in
dialog. Now, while the keyboard is up, aFillFillroot is laid out in the
part of the window above it, and dialogs, toasts and dropdowns are placed
there too. When a text field takes focus with the keyboard up, or the keyboard
grows while a field has focus, its scroll containers scroll it into view once,
as far as their scroll range allows; the user can still scroll away while
typing. A field with no scroll container around it cannot move, so a long form
still needs one. A dialog taller than the area keeps its top in view. A
floating or undocked iPad keyboard reports no inset and moves nothing. Desktop
has no soft keyboard and does not change. Migration: an app that added
Window.SoftKeyboardInset()to its padding now gets the space twice; remove
that padding. An app that places its content against the inset itself sets the
newWindowCfg.SoftKeyboardOverlaysto keep the old behaviour.
Fixed
- Markdown lists, block quotes and code blocks are spaced correctly. A tab
in a fenced code block drew one space wide, because glyph sets no tab stops,
so indented code (all gofmt'd Go) lost its indentation. Tabs now expand to
4-column stops for display; the copy button still copies the tabs. The gap
between a list marker and its text was the marker's trailing space plus the
container's default gap (14px); it is now one small gap (6px), and a task box
lost its extra 6px. A first-level list is now indented oneNestIndent
(16px), as browsers and GitHub indent one; its marker used to sit flush with
paragraph text. A block quote had a clear strip between its bar and its tint,
with the text flush on the tint's edge; the tint now starts at the bar and the
text is inset 12px inside it.
What's Changed
Other changes
- chore(deps): bump Go modules and golangci-lint to v2.15.0 by @mike-ward in #1292
- feat(gui): lay out above the soft keyboard and reveal the focused field (#1109) by @mike-ward in #1294
- fix(gui): space markdown lists, quotes and code blocks correctly by @mike-ward in #1295
- docs: refresh stale content across guides and subpackage analysis by @mike-ward in #1296
- release v0.98.0 by @mike-ward in #1298
Full Changelog: v0.97.0...v0.98.0