From b4955d24156b69e7ed369f56f11ac5285cc3fcfc Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 30 Jun 2021 16:10:24 +0200 Subject: [PATCH] Fix shuffle and auto-play checkbox in slide puzzle Text's behavior right now is to clip on a line basis, so with the given font-size for these two elements, the glyphs aren't shown at all because the ascent + descent that's use for the clip test is bigger than the maximum height, despite the actual glyphs fitting. For now, reduce the font-size slightly to make the glyphs fit. --- examples/slide_puzzle/slide_puzzle.60 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/slide_puzzle/slide_puzzle.60 b/examples/slide_puzzle/slide_puzzle.60 index 3323f77cb..2488bdd0a 100644 --- a/examples/slide_puzzle/slide_puzzle.60 +++ b/examples/slide_puzzle/slide_puzzle.60 @@ -72,7 +72,7 @@ Checkbox := Rectangle { height: root.height; text: "✓"; - font-size: height; + font-size: height * 90%; color: white; animate color { duration: 200ms; } vertical-alignment: center; @@ -428,7 +428,7 @@ export MainWindow := Window { padding: height * 25%; Text { text: " ↻ "; - font-size: parent.height * 50%; + font-size: parent.height * 40%; color: current-theme.game-highlight-color; vertical-alignment: center; TouchArea {