From d7131587d3e63a76079699569ae7b7fc966843ab Mon Sep 17 00:00:00 2001 From: BDisp Date: Sun, 6 Nov 2022 18:26:04 +0000 Subject: [PATCH] Fixes 2193. Character Map scenario not showing the last range chars U+10fffx. --- UICatalog/Scenarios/CharacterMap.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UICatalog/Scenarios/CharacterMap.cs b/UICatalog/Scenarios/CharacterMap.cs index 667e0aafa..ba4d7b350 100644 --- a/UICatalog/Scenarios/CharacterMap.cs +++ b/UICatalog/Scenarios/CharacterMap.cs @@ -109,7 +109,7 @@ namespace UICatalog.Scenarios { ColorScheme = Colors.Dialog; CanFocus = true; - ContentSize = new Size (CharMap.RowWidth, MaxCodePointVal / 16); + ContentSize = new Size (CharMap.RowWidth, MaxCodePointVal / 16 + 1); ShowVerticalScrollIndicator = true; ShowHorizontalScrollIndicator = false; LayoutComplete += (args) => { @@ -128,6 +128,8 @@ namespace UICatalog.Scenarios { AddCommand (Command.ScrollDown, () => { ScrollDown (1); return true; }); AddCommand (Command.ScrollLeft, () => { ScrollLeft (1); return true; }); AddCommand (Command.ScrollRight, () => { ScrollRight (1); return true; }); + AddCommand (Command.PageUp, () => ScrollUp (Bounds.Height - 1)); + AddCommand (Command.PageDown, () => ScrollDown (Bounds.Height - 1)); } private void CharMap_DrawContent (Rect viewport)