diff --git a/src/PKForge.App/Views/LoadingOverlay.cs b/src/PKForge.App/Views/LoadingOverlay.cs index d3f47acd..ab714873 100644 --- a/src/PKForge.App/Views/LoadingOverlay.cs +++ b/src/PKForge.App/Views/LoadingOverlay.cs @@ -49,7 +49,11 @@ private LoadingOverlay(Grid host, string title, string subtitle) }, }; - var window = Kit.OverlayWindow(host, content, preferredMaxWidth: 440, padding: 18); + // Fixed, short content: no ScrollView. OverlayWindow's ScrollView claims the full + // host height (see PadMenu), stretching this window top to bottom, and on some + // screens (the Odin 3) the stretched content rounds a pixel past the viewport, so + // Android draws its scrollbar as a dark line down the window's right edge. + var window = Kit.OverlayWindow(host, content, preferredMaxWidth: 440, padding: 18, scroll: false); _overlay = Kit.AttachOverlay(host, window, () => Cancellation.Cancel()); _pad = new PadOverlay(() => Cancellation.Cancel(), () => Cancellation.Cancel()); } diff --git a/src/PKForge.App/Views/TextPopup.cs b/src/PKForge.App/Views/TextPopup.cs index 1c4a14dd..e8060a72 100644 --- a/src/PKForge.App/Views/TextPopup.cs +++ b/src/PKForge.App/Views/TextPopup.cs @@ -47,7 +47,9 @@ void Close(string? text) new HorizontalStackLayout { Spacing = 8, HorizontalOptions = LayoutOptions.End, Children = { cancel, save } }, }, }; - overlay = Kit.AttachOverlay(host, Kit.OverlayWindow(host, content, preferredMaxWidth: 420), () => Close(null)); + // One line and two buttons never scroll; a ScrollView here stretched the window to + // the full host height and could show its scrollbar (see LoadingOverlay). + overlay = Kit.AttachOverlay(host, Kit.OverlayWindow(host, content, preferredMaxWidth: 420, scroll: false), () => Close(null)); pad = new PadOverlay(() => Close(null), Save); return result.Task; }