Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/PKForge.App/Views/LoadingOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down
4 changes: 3 additions & 1 deletion src/PKForge.App/Views/TextPopup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down